moca.bedoperations.model.
Bedfile
(filepath, genome_table, output_dir=None)[source]¶Bases: future.types.newobject.newobject
Class to crate a bed file object
Parameters: |
|
---|
extract_fasta
(bed_in, fasta_in, fasta_out=None)[source]¶Extract fasta of bed regions
Parameters: |
|
---|---|
Returns: | fasta – Fasta sequence combined |
Return type: | string |
get_total_peaks
¶guess_bedformat
()[source]¶Method to guess bed format
Returns: |
|
---|
slop_bed
(bed_in, flank_length=50)[source]¶Add flanking sequences to bed file
Parameters: |
|
---|---|
Returns: | slopped_bed – Slopped bed data object |
Return type: | dataframe |
sort_by
(columns=None, ascending=False)[source]¶Method to sort columns of bedfiles
Parameters: |
|
---|---|
Returns: | sorted_bed_df – dataframe with sorted columns |
Return type: | dataframe |
split_train_test_bed
(train_peaks_count=500, test_peaks_count=500, train_suffix='train', test_suffix='test')[source]¶Split bedfile into ranked training and testing sets
Training set consists of top train_peaks_count peaks while testing set will consist of next test_peaks_count ranked peaks
Parameters: |
|
---|