Closed complexgenome closed 5 years ago
Hello,
With the way that get_corr_chr
is currently set up, pop1.gds
, pop2.gds
, and pop3.gds
should be character strings specifying the name of three separate GDS files that contain the relevant local ancestry calls. So, rather than storing AFR, NAT, CEU dosages as separate nodes in a single GDS object, they should each be stored in their own SeqArray GDS files.
To get local ancestry calls in this format, you could first create three separate VCF files and then use the vcf2gds
utility in the UW-GAC analysis pipeline.
Hi Devels,
Thank you for this library. I'm interested to use this package to estimate threshold for a three-way admixed population: afr amer, native, and European in hispanics. I've very limited knowledge of gds data and perhaps the reason for the error I've.
The haplotype per ancestry were derived using RFMIX, V1 and phased using SHAPEIT2. Also, I've per person global ancestry AFR, NAT and CEU.
Also, I've dataframe per chromosome that contains centi morgan information per input marker. I'd like to check the correlation for the ancestry proportion and inferred haplotypes for which I'm using
get_corr_chr
function.I have gds file per CHR that consists ancestral dosage. That is for example, CHR22, has snp info, dosage_ceu, dosage_nat and dosage_afr
using the above data, I use function as
After few minutes I get following error:
Error: is.character(gds.fn) is not TRUE
In-house code for per ancestry gds per CHR can be found at link .Can you please guide me to overcome this?
Thanks!
Versions of libraries I'm using: