Skip to content

Commit

Permalink
Test_12: Pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreRico committed Oct 21, 2024
1 parent 660c8fe commit 0572b99
Showing 1 changed file with 21 additions and 19 deletions.
40 changes: 21 additions & 19 deletions pipeline/PharmCAT_Pipeline.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -275,25 +275,27 @@ task pipeline_task {
echo "Running command: $cmd" >> $log_file
eval $cmd

# # Option 2: None VCF or TSV input. Check directory content to process

# elif [[ -z "~{vcf_file}" ]]; then
# if [[ $(ls wf/data/*.vcf.* 2>/dev/null | wc -l) -gt 0 ]]; then
# echo "Processing all individual VCF files in the directory: wf/data/" >> $log_file

# VCFs_list="wf/VCFs_list.txt"
# ls wf/data/*.vcf.* > $VCFs_list

# while read -r vcf_file; do
# echo "Processing individual VCF file: $vcf_file" >> $log_file
# cmd="pharmcat_pipeline $vcf_file $arg"
# echo "Running command: $cmd" >> $log_file
# eval $cmd
# done < $VCFs_list
# else
# echo "No VCF files found in files/input_directory. Exiting." >> $log_file
# exit 1
# fi
# Option 2: None VCF or TSV input. Check directory content to process

elif [[ -z "~{vcf_file}" ]]; then
# if [[ $(ls wf/data/*.vcf.* 2>/dev/null | wc -l) -gt 0 ]]; then
# echo "Processing all individual VCF files in the directory: wf/data/" >> $log_file

# VCFs_list="wf/VCFs_list.txt"
# ls wf/data/*.vcf.* > $VCFs_list

# while read -r vcf_file; do
# echo "Processing individual VCF file: $vcf_file" >> $log_file
# cmd="pharmcat_pipeline $vcf_file $arg"
# echo "Running command: $cmd" >> $log_file
# eval $cmd
# done < $VCFs_list
# else
# echo "No VCF files found in files/input_directory. Exiting." >> $log_file
# exit 1
# fi

echo "dentro da opcao de diretorio" >> $log_file

else
echo "No VCF or list of VCFs provided or found in directory. Exiting." >> $log_file
Expand Down

0 comments on commit 0572b99

Please sign in to comment.