modkit icon indicating copy to clipboard operation
modkit copied to clipboard

Unclear modkit pileup `--region`

Open Ge0rges opened this issue 9 months ago • 2 comments

Hi Art,

To pileup many different contigs I thought of doing modkit pileup --region contig_1,contig_2 since the documentation says Commas are allowed. But that seems to not be correct? I get Error! missing contig.

I can bypass this with the --include-bed option but was wondering. Thanks!

Ge0rges avatar Feb 25 '25 18:02 Ge0rges

Hello @Ge0rges,

You can only do one region at a time with --region, I should revise the help string to say "Commas are allowed in the genome coordinates" e.g. "chr20:62,141,748-62,145,077". I found this to be convenient when copy-pasting from IGV, maybe just me though. Some other programs don't seem to let you do this. If you want to use multiple regions, you need to use --include-bed. Maybe I'll add a --regions option.

ArtRand avatar Feb 25 '25 22:02 ArtRand

Thanks, that's reasonable. I just used --include-bed

Ge0rges avatar Feb 25 '25 22:02 Ge0rges