-
Notifications
You must be signed in to change notification settings - Fork 53
Description
Hello,
I am writing this code:
library(vcfR)
library(ape)
#input vcf Data S17 RES SNPs
vcf = read.vcfR("/Desktop/Final_Table/RES_S17_readyAnalysis_SNP.vcf")/Desktop/Resource/hg38.fa", format = "fasta")
genome = ape::read.dna("
ref = read.table("~/Desktop/GRCh38_latest_genomic.gff", sep = '\t', quote = "")
#creating a ChromeR object
chrom <- create.chromR(name="S17SNP", vcf=vcf, seq=genome, ann=ref, verbose=TRUE)
plot(chrom)
I'm getting this error that I can't explain:
vcfR object includes more than one chromosome (CHROM)
Subsetting to the first chromosome
Warning message:
In create.chromR(name = "S17SNP", vcf = vcf, seq = genome, ann = ref, :
Names in variant data and annotation data do not match perfectly.
If you choose to proceed, we'll do our best to match the data.
But prepare yourself for unexpected results.
the fasta file is the same one I used to do the alignment and the annotation.
Does anyone have any input?