-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error with vcf2pcadapt command #30
Comments
Hi, Best |
Hi Mary, With which command did you load your vcf file into R? I load it with vcfR and when doing this get a "large vcfR" object. Is this the same for you? thanks , |
I used just this command to load vcf to the package. Please try it without your first command. Hope it helps |
Note that you should not use
|
Hi Privefl, |
@Mary-00 and @fkatharina, can you use the solution proposed by @privefl and tell us if it works. |
just gave it a try and it works, many thanks to all and particularly to @privefl for the right solution! |
Great, glad that it works. |
Dear Michael,
I wonder if you could help with an error I encounter using the pcadapt package?
I am following the manual to load vcf data into R, wanting to dentify outlier loci using the pcadapt command.
I first read the data into R using vcfR, as the manual suggests:
data <- read.vcfR("data.vcf")
However, when I then use the following command for conversion, I get an error message:
data_pcadapt <- vcf2pcadapt(data, output = "data.pcadapt", allele.sep = c("/", "|"))
Error in vcfR::read.vcfR(input, verbose = FALSE) : The parameter file is expected to be a character.
I have already browsed the web but cannot understand why it would not recognize the vcf file if I loaded it according to pcadapt-manual-instructions...?
Any advice you can provide would be greatly appreciated.
best regards,
Katharina
The text was updated successfully, but these errors were encountered: