drop_snps: Drop set a SNPs

View source: R/data_manip.R

drop_snpsR Documentation

Drop set a SNPs

Description

remove a set of SNPs from the SNPdata object

Usage

snpdata = drop_snps(snpdata, snp.to.be.dropped=NA, chrom="Pf3D7_05_v3", start=100, end=500)

Arguments

snpdata

a SNPdata object

snp.to.be.dropped

a data frame with 2 columns "Chrom" and "Pos"

chrom

the chromosome from which loci should be dropped

start

the starting position of the region to be discarded

end

the end position of the region to be discarded

Details

when snp.to.be.dropped is not set to NA (i.e. the genomic coordinates of snps to be removed are in a data frame), then the rest of the arguments can be ignored or set to NA (chrom=NA, start=NA, end=NA)

Value

a SNPdata object where the specified SNPs have been removed


FellouMada/rSNPdata documentation built on June 12, 2022, 7:29 p.m.