I saw already many question on that topic but I cannot get any solution to my code. I believe that the problems comes from the space that I try to put between two arguments or from the sed command. Please I need some help. Thanks a lot
try:
print('filtering vcf files for hwe with: maf '+str(args.maf)+' minDP '+str(args.mdp)+' minQ '+str(args.q))
select_command = os.system("parallel --gnu -j"+str(args.t)+' '+args.vcf+"vcftools --vcf {} --out "+args.i+"$(echo $(basename {}) | sed 's/.vcf//') --remove-indels --maf "+str(args.maf)+" --min-meanDP "+str(args.mdp)+" --minQ "+str(args.q)+" --remove-filtered-all --remove-filtered-geno-all --hwe)
if select_command == 0 :
print('done')
else :
print('filtering hwe failed !')
except OSError as e:
print("Execution failed ", e)
SyntaxError: EOL while scanning string literal