In the below perl
executes if one file is processed perfect. However, when multiple files are processed in batch which is preferred I get the below error that I can not seem to fix it as the ''
necessary for the command to execute, but seem to only work for one -arg
option. Thank you :).
command to process one file at a time
perl -ne 'chomp; system ("perl table_annovar.pl -vcfinput file.vcf humandb/ -buildver hg19 -arg '-hgvs',,,,, -remove -protocol IDP.refGene,avsnp147,popfreq_all_20150413,spidex,dbnsfp33a,clinvar_20161128 -operation g,f,f,f,f,f -otherinfo -nastring .")' < target.txt
Using a batch command I get:
Batch command to process all files in target.txt
perl -ne 'chomp; system ("perl table_annovar.pl -vcfinput $_ humandb/ -buildver hg19 -arg '-splicing_threshold 50 -hgvs',,,,, -remove -protocol IDP.refGene,avsnp147,popfreq_all_20150413,spidex,dbnsfp33a,clinvar_20161128 -operation g,f,f,f,f,f -otherinfo -nastring .")' < target.txt
Can't find string terminator '"' anywhere before EOF at -e line 1.
perl -ne 'chomp; system ("perl table_annovar.pl -vcfinput $_ humandb/ -buildver hg19 -arg -splicing_threshold 50 -hgvs,,,,, -remove -protocol IDP.refGene,avsnp147,popfreq_all_20150413,spidex,dbnsfp33a,clinvar_20161128 -operation g,f,f,f,f,f -otherinfo -nastring .")' < target.txt
Unknown option: hgvs,,,,,