Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
Siddharth Annaldasula committed Mar 22, 2021
2 parents 4c1e749 + 50d547b commit c2b0c9a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
11 changes: 6 additions & 5 deletions Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ rule interpro_scan:
"source {params.java} ; sh {params.pfam} -i {input.translation} -o {output} -f GFF3 -appl {params.db} -dra"

# Secondary structure analysis
rule porter_analysis:
rule brewery_analysis:
input:
"Results/Genes_temp/{gene}/transcripts/{transcript}_protein.fa"
output:
Expand Down Expand Up @@ -589,7 +589,7 @@ def functional_files():
if (config["aa"]): files.append("Results/Genes_temp/{gene}/transcripts/{transcript}_protein.fa")
if (config["iupred2a"]): files.append(rules.iupred2a_analysis.output.idr)
if (config["pfam"]): files.append(rules.interpro_scan.output)
if (config["porter"]): files.append(rules.porter_analysis.output)
if (config["brewery"]): files.append(rules.brewery_analysis.output)
if (config["pfScan"]): files.append(rules.functional_site_analysis.output)
return files
rule individual_transcript_analysis:
Expand Down Expand Up @@ -618,7 +618,8 @@ def aggregate_transcript_analysis_func(wildcards):
rule aggregate_transcript_analysis:
input:
func = aggregate_transcript_analysis_func,
stats = "Results/Genes_temp/{gene}/{gene}_transcripts_stats.txt"
stats = "Results/Genes_temp/{gene}/{gene}_transcripts_stats.txt",
gene_temp = directory("Results/Genes_temp")
output:
analysis = "Results/Genes/{gene}/{gene}_transcripts_filtered_analysis.txt",
stats = "Results/Genes/{gene}/{gene}_transcripts_stats.txt"
Expand All @@ -631,7 +632,7 @@ rule aggregate_transcript_analysis:
priority: 5
threads: 1
shell:
"cat {input.func} > {output.analysis}; cat {input.stats} > {output.stats}"
"cat {input.func} > {output.analysis}; cat {input.stats} > {output.stats}; rm -rf {input.gene_temp};"

rule protein_coding_potential_analysis:
input:
Expand Down Expand Up @@ -660,7 +661,7 @@ def aggregate_protein_coding_potential_analysis(wildcards):
rule output_combine_files:
input:
aggregate = aggregate_protein_coding_potential_analysis,
gene_temp = directory("Results/Genes_temp"),
gene_temp = directory("Results/Genes_temp")
output:
plot = "Results/Output/" + config["output_plots"]
resources:
Expand Down
5 changes: 1 addition & 4 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ iupred2a_path: "/path/to/iupred2a/iupred2a.py"
iupred2a: TRUE

brewery_path: "/path/to/Brewery/Brewery.py"
porter: TRUE
brewery: TRUE

interproScan_path: "/path/to/my_interproscan/interproscan-5.38-76.0/interproscan.sh"
pfam: TRUE
Expand All @@ -124,9 +124,6 @@ pfScan_path: "/path/to/ps_scan/pfscan"
prositeDat_path: "/path/to/prosite.dat"
pfScan: TRUE

#plaac_path: "/path/to/plaac.jar"
#prion: FALSE

minIsoTPM: 1
maxIsoNum: 8
minIsoPct: 10
Expand Down
2 changes: 1 addition & 1 deletion config_example_pdk2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ iupred2a_path: "/path/to/iupred2a/iupred2a.py"
iupred2a: TRUE

brewery_path: "/path/to/Brewery/Brewery.py"
porter: TRUE
brewery: TRUE

interproScan_path: "/path/to/my_interproscan/interproscan-5.38-76.0/interproscan.sh"
pfam: TRUE
Expand Down
2 changes: 1 addition & 1 deletion scripts/visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def plotSequenceAnalysis(transcripts_plot, colors, longest_length_protein, fig,
bottom += 0.5

# Secondary structure prediction
if (snakemake.config["porter"]):
if (snakemake.config["brewery"]):
ss3_df = pd.DataFrame(tcons_curr.ss3[1:], columns = tcons_curr.ss3[0])
ss = list(ss3_df["SS"])
for i in range(len(tcons_curr.aa)):
Expand Down

0 comments on commit c2b0c9a

Please sign in to comment.