Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • jkbonfield
    replied
    The bug has been found and fixed (I hope) in the CVS tree. Many thanks to Sven for providing some test data to trigger the issue. (Specifically it occurs when using BAF files with trace names that do not share a common prefix with the reading names.)

    I'll build a new version on Monday most likely, also including an updated caf2baf script too. In searching for it I found a few other oddities when compiling with full optimisation which I'm fixing at the same time. The 1.2.0 release was accidentally built with full debugging and unoptimised code, although it's still sufficiently fast that it's not desparately noticable.

    Sorry for the error.

    James

    Leave a comment:


  • jkbonfield
    replied
    You can ignore the libpng whinge - I'm currently working on improving the staden package dependencies and build environment (about time!) and that's something which should go away.

    The abort though is more worrying. I'm assuming this assembly has a lot of contigs (based on the comment about increasing tg_cache - that's to do with the number of objects held in memory), but I've tested a variety of assemblies so far.

    Is there a smaller .baf file you could send me perhaps that recreates the error (to sanger.ac.uk addr)? Obviously it doesn't get as far as to 3% into the file.

    Also, what linux OS & release are you using please?

    James

    Leave a comment:


  • sklages
    replied
    Hi James,

    i managed to compile caftools, io_lib, searched for Caftools.pm and finally fail to index a BAF file created by caf2baf.

    I have a CAF written by MIRA assembler which I have converted.

    Now I just wanted to index,

    $ tg_index -p -B -o proj_gap5 proj.baf
    tg_index.bin: /scratch/local2/SVEN/software_test_installs/gap5/gap5-1.2.0-linux-x86_64/lib/linux-x86_64-binaries/libpng12.so.0: no version information available (required by /scratch/local2/SVEN/software_test_installs/gap5/gap5-1.2.0-linux-x86_64/lib/linux-x86_64-binaries/libtk_utils.so)

    g_index: Short Read Alignment Indexer, version 1.1.3

    Author: James Bonfield ([email protected])
    2007-2009, Wellcome Trust Sanger Institute

    Loading proj.baf...
    2%Resizing HacheTable tg_cache to 4096
    2*Aborted


    Any idea where to look or what to do?

    Thanks,
    Sven

    Leave a comment:


  • jkbonfield
    started a topic Gap5 1.2.0 release (assembly viewer & editor)

    Gap5 1.2.0 release (assembly viewer & editor)

    I've just made the latest Gap5 release on sourceforge, as prebuilt linux binaries (32-bit and 64-bit intel binaries only currently). Source is there too, but it's warty and a pain to build right now.

    Since the previous release I've put a lot of work into making the file format compact, so that it's now typically smaller than the equivalent BAM file while still retaining editing capability. (Although editing hasn't been rigorously tested yet and there are still many things to add.)

    I've made a start at adding library analysis and supporting annotations. They're in the file format now and have minimalistic visualisation interfaces to test they're working, but these will get fleshed out during later 1.2.x releases.

    James

    Overview

    Gap5 is ultimately the replacement for Gap4 in that it aims to be a sequence assembly viewer and editor for finishing experiments. As such it provides tools for comparing, joining and breaking contigs as well as the smaller details of individual base editing.

    It is designed to be compact in file size, and generally very low in CPU and memory usage. In cpu/memory it's typically comparable to MapView or samtools tview. In file size (it still needs it's own format) it's usually slightly smaller than BAM format.

    Right now it is very much work in progress. As far as a viewer goes it's already a useful tool in it's own right, but as an editor there's still lots of missing features. It's likely there are some major bugs in the editor too as it's not had a lot of testing yet.

    I'd recommend using the "-ro" flag to gap5 (read-only mode) unless you really do need to be editing too.

    To get started, firstly you need a Gap5 database. It cannot read your old Gap4 ones. You an construct new Gap5 databases out of ACE, MAQ, BAM or BAF format files, or convert your old Gap4 databases via caftools and the supplied caf2baf script. Eg:

    cd /nfs/repository/d0022/bE171C14/
    gap2caf -project BE171C14 -version 0 | caf2baf > /tmp/BE171C14.baf
    cd /tmp
    tg_index -p -B -o BE171C14 BE171C14.baf
    gap5 BE171C14

    It's worth having an idea of the depth of your data too. If you have a very shallow assembly, try using (for example) the "-z 256k" option to tg_index to speed up processing and reduce file size. See below for the full details.

    tg_index

    This converts various alignment file formats into a gap5 database file (or pair of files infact). The input formats currently supported are maq (short/long), bam, ace, baf, and some old "aln" text format. I have a caf2baf conversion tool if people need it too, but it's not natively supported by tg_index.

    Usage:
    tg_index -o dbname [options] -format_code input_filename

    format_code is one of

    -b
    BAM
    -m
    MAQ short
    -M
    MAQ long
    -A
    ACE
    -B
    BAF

    In additon to this there are a variety of other options:

    -a
    Append mode. With this the database is appended to instead of overwritten.

    -n
    Requests that new contigs are made when appending, even if they match the names of existing contigs. (By default it'll merge data into the same contigs, but if padding is different then this will cause issues.

    -p, -P
    turn on (or off) read-pairing. This is on by default, but it uses up memory to identify the pairs (by name). If you know you have single-ended data then using -P will speed up indexing and save memory.

    -T
    Requests building a B+Tree of sequence names. This permits random access governed by a name rather than position, eg to jump specifically to sequence "foo" in the Gao5 editor. The index isn't build by default as it's rather slow. (I have plans on improving this though.)

    -o 'db_name'
    Specifies the output database name is to be db_name.

    -z 'size'
    This governs the bin size for the range-query binning system. By default 'size' is 4k, but it's worth increasing this if your coverage is very low. Ideally you want a few thousand sequences per bin to strike a happy balance between speed and I/O efficiency.

    So a typical example usage maybe:
    tg_index -z 64k -o rmdup_g5 -m rmdup.map

    gap5

    This is the actual viewer or editor. The main displays you'll want to familiarise yourself with are the Contig List, Contig Editor and Template Displays.

    Initially you may (or may not, depending on how many there are) see the "contig selector" window. Note that this is currently bugged when the total contig length goes beyond 2Gb - eg whole human alignments. It's probably worth using the Contig List window instead in this case. You can forcibly turn on or turn off displaying the contig selector at startup using -csel and -no_csel command line options.

    -ro
    Use this command line option to disable editing abilities. It opens the file in read-only mode guaranteeing that you cannot change the data.
    -csel
    Forces the contig selector to be shown at startup
    -no_csel
    Forces the contig selector to not be shown at startup.

    Downloads

    The executables are distributed via sourceforge at:



    Code, for those that really care, is also there via:

    Download Staden Package for free. A fully developed set of DNA sequence assembly (Gap4 and Gap5), editing and analysis tools (Spin) for Unix, Linux, MacOSX and MS Windows.

    Download Staden Package for free. A fully developed set of DNA sequence assembly (Gap4 and Gap5), editing and analysis tools (Spin) for Unix, Linux, MacOSX and MS Windows.


    Screenshots:



    This shows a graphical overview of a mixed assembly. The colours indicate mapping quality and/or template status (single ended, paired but spanning contigs). The Y status indicates the insert size - hence clearly seeing solexa vs capillary libraries in this plot.




    An example of the contig editor. This is a mix of 454 and capillary data made by MIRA. The MIRA tags are visible here as the coloured fragments.




    Another editor screenshot, showing grey scales for base quality and mapping quality (in the "names" panel to the left, now just an ascii art representation of the alignments). Also shown are a couple traces for capillary sequences as this is from a mixed capillary/solexa assembly. It can show 454 traces too, and in theory solexa ones but we're no longer keeping processed trace data here (only raw).

    James
    Last edited by jkbonfield; 06-11-2009, 12:40 AM.

Latest Articles

Collapse

  • SEQadmin2
    Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
    by SEQadmin2



    Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

    Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
    ...
    10-14-2026, 09:55 AM
  • SEQadmin2
    New Genomics Technologies Take Aim at Long-Standing Limits
    by SEQadmin2


    Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

    We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
    ...
    09-28-2026, 10:25 AM

ad_right_rmr

Collapse

News

Collapse

Topics Statistics Last Post
Started by SEQadmin2, Yesterday, 11:13 AM
0 responses
19 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, Yesterday, 10:48 AM
0 responses
18 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 10-15-2026, 10:52 AM
0 responses
36 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 10-14-2026, 05:39 AM
0 responses
42 views
0 reactions
Last Post SEQadmin2  
Working...