Skip to content

Commit

Permalink
option: keep only MANE select transcripts
Browse files Browse the repository at this point in the history
  • Loading branch information
vasicek58 committed May 16, 2024
1 parent b960d77 commit 633026c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ rule download_reference_proteome:
rule reference_filter_format:
input:
fasta="data/fasta/Homo_sapiens.GRCh38.pep.all.fa",
tr=expand('{proxy}', proxy=["data/transcripts_reference_" + str(config['ensembl_release']) + '_MANE_Select.csv'] if config['only_MANE_select'] else [])
tr=expand('{proxy}', proxy=["data/transcripts_reference_" + str(config['ensembl_release']) + '.csv'] if config['only_MANE_select'] else [])
output:
"data/fasta/ensembl_reference_proteinDB_" + str(config['ensembl_release']) + "_tagged.fa"
"data/fasta/ensembl_reference_proteinDB_" + str(config['ensembl_release']) + "_tagged" + ('_MANE_Select' if config['only_MANE_select'] else '') + ".fa"
conda: "envs/prohap.yaml"
params:
tr_filter=('-tr data/transcripts_reference_' + str(config['ensembl_release']) + '_MANE_Select.csv') if config['only_MANE_select'] else ''
Expand All @@ -88,15 +88,15 @@ rule default_transcript_list:
ref_fasta="data/fasta/ensembl_reference_proteinDB_" + str(config['ensembl_release']) + "_tagged.fa",
annot="data/gtf/" + config['annotationFilename'] + ".db"
output:
"data/transcripts_reference_" + str(config['ensembl_release']) + ('_MANE_Select' if config['only_MANE_select'] else '') + ".csv"
temp("data/transcripts_reference_" + str(config['ensembl_release']) + ".csv")
params:
MANE=int(config['only_MANE_select'])
shell:
"python3 src/get_reference_ENST.py -i {input.ref_fasta} -annot {input.annot} -MANE {params.MANE} -o {output}"

rule reference_remove_stop:
input:
"data/fasta/ensembl_reference_proteinDB_" + str(config['ensembl_release']) + "_tagged.fa"
"data/fasta/ensembl_reference_proteinDB_" + str(config['ensembl_release']) + "_tagged" + ('_MANE_Select' if config['only_MANE_select'] else '') + ".fa"
output:
temp("data/fasta/ensembl_reference_proteinDB_" + str(config['ensembl_release']) + "_clean.fa")
conda: "envs/prohap.yaml"
Expand Down

0 comments on commit 633026c

Please sign in to comment.