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

Error: Unexpected format to the list of available marts. #42

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sciencepeak
Copy link

@sciencepeak sciencepeak commented Feb 27, 2023

Hi,

We are using the getGenePositions() that is used in SPATA2 that is used in our project. There is an error possibly related to getGenePositions() not following the latest API of biomaRt.

Error message

Error: Unexpected format to the list of available marts.
Please check the following URL manually, and try ?listMarts for advice.
http://dec2016.archive.ensembl.org:80/biomart/martservice?type=registry&requestid=biomaRt
In addition: Warning message:
Ensembl will soon enforce the use of https.
Ensure the 'host' argument includes "https://" 
Called from: .listMarts(host = host, path = path, port = port, includeHosts = TRUE, 
    httr_config = httr_config, archive = archive, ensemblRedirect = ensemblRedirect, 
    warn = FALSE)

My updates of the getGenePositions() function include:

  • I fix the broken call to the biomaRt API and use the latest ensembl version. The previous version is 6 years old.

  • The parameter list and output of the function is basically unchanged to ensure dependent codes working.

  • The gene_names parameter is enhanced so that it can retrieve all the genes without user input.

  • The ignoreAlt option's logic is separated and rewritten to work more consistently.

Thanks again for your contribution to the science community.

Best,

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

Successfully merging this pull request may close these issues.

1 participant