Skip to main content

Can't list all the references via getNumberOfReferenceSequences() provided in the API

Comments

7 comments

  • Hilary Miller

    What you are doing looks correct and it should return the correct number of reference sequences - at least it does when I just tried it now. Are you sure you actually choose multiple reference sequences in the assembly options when you run it. For example the reference sequence you select in the options should say something like Reference Sequence: "All 5 sequences from document name".

    As a test, you could change your getReferenceSequenceSupport back to ReferenceSequenceSupport.SingleReferenceSequence and when you select multiple reference sequences in the options, Geneious should pop up a warning message saying "The selected assembler only supports a single reference sequence" and won't let you continue.

    0
  • arkilis

    Yes, in light of your help, I found there is 'additional' option in the 'Map to Reference'. First you need to group all your reference sequences into a list. Then the functions are working.

    0
  • arkilis

    Just another related question.

     

    How could I find out the 'Assembly Report'  type? It is a TextDocument object? Thanks

    0
  • Hilary Miller

    It is a custom PluginDocument type which isn't available in the API. You can find out the class of any document by going to Tools->Preferences->Plugins and Features ->Customize Feature Set and turning on the 2 "Document Source..." viewers. The "Summary XML" view of any document lists the class name of the document at the start.

    Why do you want to know about the 'assembly report' though? What are you trying to do with it?

    0
  • arkilis

    Thanks for your quick reply. 

     

    I was thinking to write a plugin which can save the Assembly Report as a text file. I tried the csv and tsv. It just looks like:

    Created Date Description Modified Name Size
    Wed Sep 11 10:33:30 EST 2013 Wed Sep 11 10:33:30 EST 2013 Assembly Report 42 KB

     

    So if there is any way that enable us to save the whole Assembly Report content, which will be fantastic! Do you have any idea to do this?

     

    Thanks again!

     

     

    0
  • Hilary Miller

    Unfortunately with a custom viewer like that not really. You could write some code to obtain get the assembly report's DocumentViewerFactory and ask that to generate the JComponent it uses for viewing. But you are probably better off just selecting all the text from the viewer and using copy and paste to get it out of Geneious.

    0
  • arkilis

    I might have try.

    Appreciate your kind advice. It is very helpful!

    0

Please sign in to leave a comment.