faircloth-lab / phyluce

software for UCE (and general) phylogenomics
http://phyluce.readthedocs.org/
Other
78 stars 49 forks source link

contig correction changing bcftools flags #269

Closed emilyostrow closed 2 years ago

emilyostrow commented 2 years ago

Hi Brant,

I was wondering if you would be able to provide some help on how to alter the correction pipeline. Your pipeline uses a QUAL value of 20 for the cutoff and I want to try 30. Is there an easy way to do this? I tried altering the Snakemake file but it gets overwritten every time I run the phyluce_workflow command

brantfaircloth commented 2 years ago

howdy,

you should be able to directly edit the appropriate snakefile that is within the phyluce conda distribution, e.g.

https://github.com/faircloth-lab/phyluce/blob/main/workflows/contig-correction/Snakefile#L60

and change QUAL<20 | DP<5 | AN>2 to the parameters you desire. This should not be getting overwritten by anything because it's needed for the workflow to run. Not sure how this could be happening (that it is overwritten) - are you definitely editing the snakefile within your phyluce distribution?

emilyostrow commented 2 years ago

Hi Brant,

It looks like the problem was on my end with writing permissions. Thank you for the confirmation that this file was what I needed to edit. That helped a lot with figuring out the problem.

brantfaircloth commented 2 years ago

You bet! I do need to make the QUAL values more modular...