aspring package

Submodules

aspring.main module

aspring.main.check_if_executable_exists(executable)[source]
aspring.main.get_arg_parser()[source]
aspring.main.parse_args(args)[source]
aspring.main.run()[source]
aspring.main.run_pipeline(gene, path_data, path_hhsuite_scripts, msa_len, msa_id_threshold, re_align, glo_loc, mact, id_pair, idCons_pair, pval, nbSpe, cov)[source]

aspring.step_01_preprocess module

aspring.step_01_preprocess.get_arg_parser()[source]
aspring.step_01_preprocess.parse_args(args)[source]
aspring.step_01_preprocess.preprocess_msas(gene, path_data, path_hhsuite, msa_len)[source]
aspring.step_01_preprocess.run()[source]

Entry point for the application script

aspring.step_02_hmm_maker module

aspring.step_02_hmm_maker.get_arg_parser()[source]
aspring.step_02_hmm_maker.hmm_maker(gene, msa_id_threshold, path_data)[source]

Create HMM profiles for all s-exons of a chosen gene

aspring.step_02_hmm_maker.parse_args(args)[source]
aspring.step_02_hmm_maker.run()[source]

aspring.step_03_hmm_aligner module

aspring.step_03_hmm_aligner.get_arg_parser()[source]
aspring.step_03_hmm_aligner.hmm_aligner(gene, msa_id_threshold, path_data, re_align, glo_loc, mact)[source]

HMM-HMM profile alignment of all s-exons combinations for a chosen gene

aspring.step_03_hmm_aligner.parse_args(args)[source]
aspring.step_03_hmm_aligner.run()[source]

aspring.step_04_gettable module

aspring.step_04_gettable.dupraw2table(path_data, gene)[source]
aspring.step_04_gettable.get_arg_parser()[source]
aspring.step_04_gettable.hhr2df(path, gene)[source]
aspring.step_04_gettable.parse_args(args)[source]
aspring.step_04_gettable.read_fasta(fasta_file, keep_annotation=False)[source]

Read sequences from fasta file.

Parameters:
  • fasta_file (str) – Name of fasta file to read.

  • keep_annotation (boolean) – Determine is sequence id should contain annotation.

Returns:

dict – Sequences indexed by sequence id.

Return type:

dict[seq_id] -> seq

aspring.step_04_gettable.run()[source]

aspring.step_05_filter module

aspring.step_05_filter.filter(gene, path_data, id_pair, idCons_pair, pval, nbSpe, cov)[source]
aspring.step_05_filter.get_arg_parser()[source]
aspring.step_05_filter.parse_args(args)[source]
aspring.step_05_filter.run()[source]

aspring.step_06_stats module

This scripts runs the step_06_getStats.R script

aspring.step_06_stats.get_arg_parser()[source]
aspring.step_06_stats.parse_args(args)[source]
aspring.step_06_stats.run()[source]
aspring.step_06_stats.run_r_script(gene, path_data)[source]
aspring.step_06_stats.test_rscript_availability()[source]

aspring.step_07_reformat module

aspring.step_07_reformat.get_arg_parser()[source]
aspring.step_07_reformat.parse_args(args)[source]
aspring.step_07_reformat.reformate(gene, path_data)[source]
aspring.step_07_reformat.run()[source]

aspring.step_08_ASRUs module

aspring.step_08_ASRUs.ases_df(path_data, gene)[source]
aspring.step_08_ASRUs.codage(eve2pair, C, d_X)[source]
aspring.step_08_ASRUs.event_to_pairs(path_data, G, gene)[source]
aspring.step_08_ASRUs.eventsDup_df(path_data, gene)[source]
aspring.step_08_ASRUs.extension_marge_pair(G, A, B, eveDups)[source]
aspring.step_08_ASRUs.extensionbis(path_data, gene)[source]
aspring.step_08_ASRUs.get_alnCols(G, A, B, eveDups)[source]
aspring.step_08_ASRUs.get_arg_parser()[source]
aspring.step_08_ASRUs.parse_args(args)[source]
aspring.step_08_ASRUs.run()[source]
aspring.step_08_ASRUs.sexSize(path_data, gene, sex)[source]
aspring.step_08_ASRUs.sim_graph_initial(path_data, gene)[source]
aspring.step_08_ASRUs.sim_graph_initial_bis(path_data, gene)[source]
aspring.step_08_ASRUs.sim_graph_workframe(path_data, gene)[source]
aspring.step_08_ASRUs.writecsv_ASRU(path_data, gene)[source]

aspring.step_09_clean module

aspring.step_09_clean.get_arg_parser()[source]
aspring.step_09_clean.parse_args(args)[source]
aspring.step_09_clean.rm_tempfiles(gene, path_data)[source]
aspring.step_09_clean.run()[source]

aspring.step_10_struct module

aspring.step_10_struct.download_alphafold_structure(uniprot_id, output_path='.')[source]
aspring.step_10_struct.download_pdb_structures(s_exon_table, output_path='.')[source]
aspring.step_10_struct.get_arg_parser()[source]
aspring.step_10_struct.get_asrus(asruFname)[source]
aspring.step_10_struct.get_pdb_sequence_length(pdb)[source]
aspring.step_10_struct.get_pdb_span(pdb)[source]
aspring.step_10_struct.get_sexon_coord(gid, tid, seqFname)[source]
aspring.step_10_struct.get_sexon_id(dictFname)[source]
aspring.step_10_struct.get_transcript_sequence_length(gid, tid, seqFname)[source]
aspring.step_10_struct.get_transcripts(s_exon_table)[source]
aspring.step_10_struct.get_uniprot_id_from_filename(pdb_filename)[source]
aspring.step_10_struct.get_uniprot_ids(species_gene_transcript_ids)[source]
aspring.step_10_struct.parse_args(args)[source]
aspring.step_10_struct.run()[source]
aspring.step_10_struct.write_pml(coord, d, asrus, pdb, outname)[source]

Module contents