Skip to content

Commit

Permalink
Merge pull request UPHL-BioNGS#23 from UPHL-BioNGS/erin-dev
Browse files Browse the repository at this point in the history
fixed gisaid fasta error
  • Loading branch information
erinyoung authored Feb 23, 2021
2 parents 3b0645d + 40df985 commit b087d1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cecret.nf
Original file line number Diff line number Diff line change
Expand Up @@ -1269,7 +1269,7 @@ process rename {
if [ -n "$sample_line" ]
then
echo "The line from !{params.sample_file} corresponding to !{sample} is $sample_line" | tee -a $log_file
sample_line=$(echo $sample_line | sed 's/","/,/g')
sample_line=$(echo $sample_line )
submission_id=$(echo $sample_line | cut -f $submission_id_column -d ',')
if [ -z "$submission_id" ] ; then submission_id=$sample_id ; fi
collection_date=$(echo $sample_line | cut -f $collection_date_column -d ',')
Expand Down Expand Up @@ -1342,7 +1342,7 @@ process rename {
if [ "!{num_ACTG}" -gt "!{params.gisaid_threshold}" ]
then
echo $gisaid_fasta_header > submission_files/$submission_id.gisaid.fa
grep -v ">" !{consensus} | fold -w 75 >> submission_files/$submission_id.genbank.fa
grep -v ">" !{consensus} | fold -w 75 >> submission_files/$submission_id.gisaid.fa
fi
if [ "!{num_ACTG}" -gt "!{params.genbank_threshold}" ]
Expand Down

0 comments on commit b087d1d

Please sign in to comment.