rna_library.processing.process_histos¶
Module Contents¶
Functions¶
|
Processes a mutational histogram file generated by dreem. |
|
Builds the reactivity dataframe from the supplied arguments. Here each row reprsents a construct. |
|
Function that creates a motif dataframe from a reactivity dataframe. Here each row represents a Motif. |
-
rna_library.processing.process_histos.process_histos(mut_hist_file, output_directory, remove_html=True)¶ Processes a mutational histogram file generated by dreem.
- Param
str mut_hist_file: path to the mutational histogram file
- Param
str output_directory: the output directory for the analysis files
- Param
bool remove_html: flag to remove .html files generated by DREEM, defaults to True
- Parameters
mut_hist_file (str) –
output_directory (str) –
remove_html (bool) –
- Return type
None
-
rna_library.processing.process_histos.build_react_df(**kwargs)¶ - Builds the reactivity dataframe from the supplied arguments. Here each row reprsents a construct.
Note that all arguments are supplied as kwargs.
- Params
str out_dir: base output directory where rna_library.process_histos was called :params: str start_seq: common start sequence for the RNA constructs
- Params
str end_seq: common end sequence for the RNA constructs
- Params
str fasta_file: path to the fast file for the construct
- Params
str histos_file: path to histogram file from DREEM analysis :rtype: pd.DataFrame
- Return type
pandas.DataFrame
-
rna_library.processing.process_histos.build_motif_df(df)¶ Function that creates a motif dataframe from a reactivity dataframe. Here each row represents a Motif.
- Param
pd.DataFrame df: reactivity dataframe which is generated from build_react_df() :rtype: pd.DataFrame
- Parameters
df (pandas.DataFrame) –
- Return type
pandas.DataFrame