Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduced handling of Influenza-C in IRMA template and small fixes in viralrecon and exometrio #177

Merged
merged 11 commits into from
Jan 16, 2024
4 changes: 2 additions & 2 deletions bu_isciii/templates/viralrecon/RESULTS/excel_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,12 @@ def excel_generator(csv_files: List[str]):
# workbook = openpyxl.Workbook(output_name)
if "nextclade" in str(file):
table = pd.read_csv(file, sep=";", header=0)
elif "illumina" in str(file) or ".tsv" in str(file):
elif "illumina" in str(file):
table = pd.read_csv(file, sep="\t", header=0)
table["analysis_date"] = pd.to_datetime(
table["analysis_date"].astype(str), format="%Y%m%d"
)
elif "assembly" in str(file):
elif "assembly" in str(file) or "tsv" in str(file) or "tab" in str(file):
table = pd.read_csv(file, sep="\t", header=0)
else:
try:
Expand Down
2 changes: 1 addition & 1 deletion bu_isciii/templates/viralrecon/RESULTS/viralrecon_results
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ cd mapping_consensus; cat ../../../ANALYSIS/*/samples_ref.txt | while read in; d
cd variants_annot; cat ../../../ANALYSIS/*/samples_ref.txt | while read in; do arr=($in); ln -s ../../../ANALYSIS/*/*${arr[1]}*/variants/ivar/snpeff/${arr[0]}.snpsift.txt ./${arr[0]}_${arr[1]}.snpsift.txt; done; cd -
cd assembly_spades; rsync -rlv ../../../ANALYSIS/*/*/assembly/spades/rnaviral/*.scaffolds.fa.gz .; gunzip *.scaffolds.fa.gz; cd -
cd abacas_assembly; cat ../../../ANALYSIS/*/samples_ref.txt | while read in; do arr=($in); ln -s ../../../ANALYSIS/*/*${arr[1]}*/assembly/spades/rnaviral/abacas/${arr[0]}.abacas.fasta ./${arr[0]}_${arr[1]}.abacas.fasta; done; cd -
cd blast; ln -s ../../../ANALYSIS/*/*.blast.filt.header.xlsx .; cd -
cd blast; ln -s ../../../ANALYSIS/*/all_samples_filtered_BLAST_results.xlsx . ; cd -
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe for just one excel there is no need to create a blast folder, maybe you can put it on the main results folder?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok!

Loading