preprocess.md

October 6, 2015 ยท View on GitHub

Basset

Deep convolutional neural networks for DNA sequence analysis.

Preprocess

#### preprocess_features.py

Merge a set of feature BED files for training into a single BED and activity table.

ArgumentsTypeDescription
target_beds_filetable listing labels and BEDOne line per sample- label then BED path
OptionsVariableDescription
-adb_act_fileExisting database activity table
-bdb_bedExisting database BED
-cchrom_lengths_fileTable of chromosome lengths
-mmerge_overlapOverlap length (after extension to feature_size) above which to merge features [Default: 200]
-nno_db_activityDo not pass along the activities of the database sequences [Default: False]
-oout_prefixOutput file prefix [Default: features]
-sfeature_sizeExtend features to this size [Default: 600]
-yignore_yIgnore Y chromsosome features [Default: False]

#### seq_hdf5.py

Construct an HDF5 file, dividng the data into training, validation, and test subsets.

ArgumentsTypeDescription
fasta_fileFASTAFASTA file of sequences.
targets_fileTableTargets activity table.
out_fileHDF5Output HDF5 file.
OptionsVariableDescription
-bbatch_sizeAlign sizes with batch size
-ccountsValidation and training percentages are given as raw counts [Default: False]
-rpermutePermute sequences [Default: False]
-srandom_seednumpy.random seed [Default: 1]
-ttest_pctTest % [Default: 0]
-vvalid_pctValidation % [Default: 0]

#### basset_sample.py

Sample sequences from an existing database.

ArgumentsTypeDescription
db_bedBEDExisting database BED.
db_act_fileTableExisting database activity table.
sample_seqsintNumber of sequences to sample.
output_prefixstrFilename prefix for output BED and activity table files.
OptionsVariableDescription
-sseedRandom number generator seed [Default: 1]