Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • angel-sakura
    Member
    • Nov 2014
    • 23

    #1

    problem with biomart---give 0 results

    Hi everyone:

    I'm trying to convert ensembl-peptide-id to GO-id with biomart. However, when I was using the following command to run it, I got 0 results.

    Here are commands I was using:
    ensembl = useMart("ensembl",dataset="hsapiens_gene_ensembl")
    id_list=c("ENSP00000298510","ENSP00000474109")
    trans_id=getBM(attributes=c("ensembl_peptide_id","entrezgene","go_id","name_1006","definition_1006","namespace_1003"), filter="ensembl_peptide_id", values="id_list", mart=ensembl)

    Could someone tell me what cause the problem please?

    Thanks a lot~
  • SylvainL
    Senior Member
    • Feb 2012
    • 180

    #2
    In my code, I use filters instead of filter, don't know which version you are using....

    Comment

    • angel-sakura
      Member
      • Nov 2014
      • 23

      #3
      Originally posted by SylvainL View Post
      In my code, I use filters instead of filter, don't know which version you are using....
      Thank you very much for your reply.
      I'm pretty sure it is not the problem of typo, as it was working with the example data with the same commands.

      Comment

      • SylvainL
        Senior Member
        • Feb 2012
        • 180

        #4
        Ah...

        did you update your biomaRt package? Then you have to check whether "ensembl_peptide_id" is still the proper filter name... I had this problem once with biomaRt, with "ensembl_gene_id"

        Comment

        • blancha
          Senior Member
          • May 2013
          • 367

          #5
          Remove the commas around id_list.

          Incorrect.
          trans_id=getBM(attributes=c("ensembl_peptide_id","entrezgene","go_id","name_1006","definition_1006","namespace_1003"), filter="ensembl_peptide_id", values="id_list", mart=ensembl)

          Correct.
          trans_id=getBM(attributes=c("ensembl_peptide_id","entrezgene","go_id","name_1006","definition_1006","namespace_1003"), filter="ensembl_peptide_id", values=id_list, mart=ensembl)

          Comment

          • angel-sakura
            Member
            • Nov 2014
            • 23

            #6
            Originally posted by blancha View Post
            Remove the commas around id_list.

            Incorrect.
            trans_id=getBM(attributes=c("ensembl_peptide_id","entrezgene","go_id","name_1006","definition_1006","namespace_1003"), filter="ensembl_peptide_id", values="id_list", mart=ensembl)

            Correct.
            trans_id=getBM(attributes=c("ensembl_peptide_id","entrezgene","go_id","name_1006","definition_1006","namespace_1003"), filter="ensembl_peptide_id", values=id_list, mart=ensembl)
            Thank you very much!!!
            It is working now!!

            Comment

            • angel-sakura
              Member
              • Nov 2014
              • 23

              #7
              Originally posted by SylvainL View Post
              Ah...

              did you update your biomaRt package? Then you have to check whether "ensembl_peptide_id" is still the proper filter name... I had this problem once with biomaRt, with "ensembl_gene_id"
              The problem is solved!!
              The "value" doesn't need the quotation mark!

              Comment

              • SylvainL
                Senior Member
                • Feb 2012
                • 180

                #8
                Can't believe I didn't see it...

                So for your future scripts:
                "object" means it's not a variable but a value
                object (without ") refers to an existing object.

                In your case, it was looking to "id_list" as an "ensembl_peptide_id", meaning if you replace "id_list" by "ENSP00000298510" in your first command, it will give you the results for this protein...

                Hope I'm clear enough

                Comment

                • angel-sakura
                  Member
                  • Nov 2014
                  • 23

                  #9
                  Yes! I understand it now!! lol

                  Thank you so much!

                  Comment

                  Latest Articles

                  Collapse

                  • kinpict.com
                    Reply to 16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
                    by kinpict.com
                    The part about this topic feels surprisingly grounded, and the details on the page is the bit that made me slow down. I’d keep <a href="https://kinpict.com/">ai family photo generator</a> bookmarked for later.
                    Today, 06:37 PM
                  • SEQadmin2
                    16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
                    by SEQadmin2





                    NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification,...
                    10-30-2026, 06:46 AM

                  ad_right_rmr

                  Collapse

                  News

                  Collapse

                  Topics Statistics Last Post
                  Started by SEQadmin2, 11-12-2026, 07:59 AM
                  0 responses
                  28 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 11-05-2026, 09:25 AM
                  0 responses
                  35 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 11-03-2026, 11:54 AM
                  2 responses
                  56 views
                  0 reactions
                  Last Post kinpict.com  
                  Started by SEQadmin2, 10-28-2026, 09:57 AM
                  0 responses
                  175 views
                  0 reactions
                  Last Post SEQadmin2  
                  Working...