knausb / vcfR

Tools to work with variant call format files
248 stars 54 forks source link

Subset or downsample a VCF file? #179

Closed vertesy closed 3 years ago

vertesy commented 3 years ago

Hello,

thanks for the great package!

Is there function to subset or downsample a VCF file that is already read in? I am aware of read.vcfR( ..., nrows=100).

Thanks, Abel

knausb commented 3 years ago

Hi Abel,

I think we've already addressed this in the documentation.

https://knausb.github.io/vcfR_documentation/vcfR_object.html#subsetting

http://grunwaldlab.github.io/Population_Genetics_in_R/gbs_analysis.html#subsetting-a-vcfr-object-to-200-random-variants

Please let me know if this helps you or not.

Thanks! Brian

vertesy commented 3 years ago

Great, thank you! (+ sorry for overlooking it)