Closed janstrauss1 closed 5 years ago
Thanks for the bug report. I need to update the vignette. The man page is up to date, however:
?DataFrameQuantitativeTrack
DataFrameQuantitativeTrack-class package:igvR R Documentation
Constructor for DataFrameQuantitativeTrack
Description:
‘DataFrameQuantitativeTrack’ creates and ‘IGV’ track for bed
objects imported using ‘rtracklayer’
Usage:
DataFrameQuantitativeTrack(trackName, quantitativeData, color = "blue",
trackHeight = 50, autoscale, min = NA_real_, max = NA_real_,
visibilityWindow = 1e+05)
Arguments:
trackName: A character string, used as track label by igv, we recommend
unique names per track.
quantitativeData: A base R ‘data.frame’
color: A CSS color name (e.g., "red" or "#FF0000")
trackHeight: track height, typically in range 20 (for annotations) and
up to 1000 (for large sample vcf files)
autoscale: Autoscale track to maximum value in view
min: Sets the minimum value for the data (y-axis) scale. Usually
zero.
max: Sets the maximum value for the data (y-axis) scale. This
value is ignored if autoscale is TRUE
visibilityWindow: Maximum window size in base pairs for which indexed
annotations or variants are displayed. Defaults: 1 MB for
variants, whole chromosome for other track types.
Value:
A DataFrameQuantitativeTrack object
Examples:
base.loc <- 88883100
tbl <- data.frame(chrom=rep("chr5", 3),
start=c(base.loc, base.loc+100, base.loc + 250),
end=c(base.loc + 50, base.loc+120, base.loc+290),
score=runif(3),
stringsAsFactors=FALSE)
track <- DataFrameQuantitativeTrack("dataframeTest", tbl, autoscale=TRUE)
Dear @paul-shannon,
I am learning to use igvR using the vignette at https://bioconductor.org/packages/release/bioc/vignettes/igvR/inst/doc/igvR.html.
Everything runs smoothly (see attached screenshot) apart from adding the quantitative track "IGAP.gwas.scored" using
track.gwas.numeric <- DataFrameQuantitativeTrack("IGAP.gwas.scored", tbl.mef2cGWAS.variants.bedGraph)
which throws the following error:
Could you help please?
Many thanks in advance, Jan
My R
sessionInfo()