Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cnSpec problem #397

Open
lfaino opened this issue Jun 1, 2024 · 1 comment
Open

cnSpec problem #397

lfaino opened this issue Jun 1, 2024 · 1 comment

Comments

@lfaino
Copy link

lfaino commented Jun 1, 2024

Dear,

can i use a custom BSgenome with the command cnSpec. I tried to use like cnSpec(LucCNseg, genome = "fv10027") with fv10017 is a genome build with BSgenomeForge but i get this error:

attempting to query UCSC mySQL database for chromosome positions
Error in .local(drv, ...) :
Failed to connect to database: Error: Unknown database 'fv10027'

can you please help?

L

@zlskidmore
Copy link
Member

Only Human and Mouse reference assemblies are provided within GenVisR as a convenience. You should be able to specify a custom genome with the y parameter however, try something like this:

myNewGenome <- data.frame("chromosome"=c('chr1', 'chr2'), "start"=c(1, 1), "end"=c(500000, 600000))
cnSpec(segments, y=myNewGenome) 

that should work, though you will need to provide the correct coordinates (or at least the regions you want to plot) during the construction of the data.frame

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants