SeqArray icon indicating copy to clipboard operation
SeqArray copied to clipboard

How to save converted file

Open manburst opened this issue 3 years ago • 2 comments

Dear Sir Now I am learning to use SeqArray package. I am trying to use the package to convert my Exome VCF SNP file into SNPGDS file for SNPrelate package for analysis relatedness. I use seqVCF2GDS(gdsfile, "gds") and seqSNP2GDS(gdsfile, "gds") to convert VCF into GDS then SNP GDS Or convert them back from SNP GDS to VCF file. but how do I save the conveted file? (VCF, GDS and SNP GDS)

Thanks in advance JK.

manburst avatar Aug 31 '22 07:08 manburst

seqVCF2GDS("your_vcf_file.vcf.gz", "your_output.gds")

The SNPRelate could read the SeqArray GDS file directly, without converting to SNP GDS.

zhengxwen avatar Sep 01 '22 03:09 zhengxwen

Thank you for quick reply.

And how do I save or export the output file from R environment to local PC?

Thanks JK.

manburst avatar Sep 01 '22 08:09 manburst