Skip to content

vcfR Subsetting to the first chromosome #211

@charbel2998

Description

@charbel2998

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")
genome = ape::read.dna("
/Desktop/Resource/hg38.fa", format = "fasta")
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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions