[Biopython] two tracks on same level when using GenomeDiagram

Peter Cock p.j.a.cock at googlemail.com
Mon Jun 25 13:01:30 UTC 2018


Yes, you would do this with a single track consisting of the
first contig, a spacer region, and then the second contig.
A large white (non-transparent) box feature for the spacer
might be enough for the draft figure, but as Leighton says,
you may want to tweak this in a PDF editor to finish.

There's an example of that here (look at the top track),
but sadly I'm not sure right away where the code for that
is...

http://journals.plos.org/plosone/article/figure?id=10.1371/journal.pone.0040683.g002

The Proux_et_al_2002_Figure_6.py example in the
Tutorial is close, introduced originally here:

https://news.open-bio.org/2012/03/02/cross-links-in-genomediagram/

Peter

On Mon, Jun 25, 2018 at 12:02 PM, Leighton Pritchard
<Leighton.Pritchard at hutton.ac.uk> wrote:
> Hi Adam,
>
>> On 25 Jun 2018, at 10:09, Adam Witney <awitney at sgul.ac.uk> wrote:
>>
>> No worries, thanks for your reply.
>>
>> Essentially what I have are two different contigs for one draft genome
>> that I want to align to a single contig for another draft genome.
>>
>> Peter has also pasted this example:
>>
>> https://www.biostars.org/p/94400/
>>
>> are these likely being manually edited then?
>
> You know what, I don’t thnk they *are* being manually edited, so it may well
> be possible in GenomeDiagram (and I just don’t know how to do it - how
> embarrassing! ;) ).
>
> Checking the paper, I don’t see a link to the code, but maybe Peter could
> put it up somewhere as an example for us both ;)
>
> Cheers,
>
> L.
>
> --
> Dr Leighton Pritchard
> Information and Computing Sciences Group; Weeds, Pests and Diseases Theme
> DG31, James Hutton Institute (Dundee)
> Errol Road, Invergowrie, Perth and Kinross, Scotland, DD2 5DA
> e: leighton.pritchard at hutton.ac.uk w:
> http://www.hutton.ac.uk/staff/leighton-pritchard
> gpg/pgp: 0xFEFC205C tel: +44(0)844 928 5428 x8827 or +44(0)1382 568827
>
>
> The James Hutton Institute is a Scottish charitable company limited by
> guarantee.
> Registered in Scotland No. SC374831
> Registered Office: The James Hutton Institute, Invergowrie Dundee DD2 5DA.
> Charity No. SC041796
>
>
> _______________________________________________
> Biopython mailing list  -  Biopython at mailman.open-bio.org
> http://mailman.open-bio.org/mailman/listinfo/biopython



More information about the Biopython mailing list