jiarong / VirSorter2

customizable pipeline to identify viral sequences from (meta)genomic data
GNU General Public License v2.0
225 stars 31 forks source link

control conda environment prefix #170

Open jowodo opened 1 year ago

jowodo commented 1 year ago

I'm on a shared system where virsorter and its database are installed centrally, so users don't have write permissions to these folders. I noticed that conda environments are created at the same location as the DBDIR when using virsorter run. Could a flag be added which specifies the location of conda environments to be created. The default could still be DBDIR, but it would be nice to be able to separately control DBDIR and conda-envs-prefix.

Thanks for your attention and consideration

jiarong commented 1 year ago

Hi, in a normal situation, once the DB is setup by the admin, users no longer need to create new conda envs in the DBDIR. But if you want to tweak the location, the --conda-prefix flag of snakemake can help. ie. you add that to the end of your virsorter run.