snp_subset_genes | R Documentation |
This was written in response to a query from Nancy and Maria Adelaida who wanted to look only at the variant positions in a few specific genes.
snp_subset_genes(
expt,
snp_expt,
start_col = "start",
end_col = "end",
expt_name_col = "chromosome",
snp_name_col = "chromosome",
snp_start_col = "position",
expt_gid_column = "gid",
genes = c("LPAL13_120010900", "LPAL13_340013000", "LPAL13_000054100",
"LPAL13_140006100", "LPAL13_180018500", "LPAL13_320022300")
)
expt |
Initial expressionset. |
snp_expt |
Variant position expressionset. |
start_col |
Metadata column with the start positions for each gene. |
end_col |
Metadata column with the end of the genes. |
expt_name_col |
Metadata column with the chromosome names. |
snp_name_col |
Ditto for the snp_expressionset. |
snp_start_col |
Metadata column containing the variant positions. |
expt_gid_column |
ID column for the genes. |
genes |
Set of genes to cross reference. |
New expressionset with only the variants for the genes of interest.
[GenomicRanges::makeGRangesFromDataFrame()] [IRanges::subsetByOverlaps()]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.