Skip to content

Instantly share code, notes, and snippets.

@ConradStack
Last active July 12, 2016 20:45

Revisions

  1. ConradStack revised this gist Jul 12, 2016. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions gff3export.R
    Original file line number Diff line number Diff line change
    @@ -6,3 +6,8 @@ export.gff(test,"~/tmp/tmp.gff3", version="3")

    # ... or a single GRanges element:
    export.gff(syn[[1]],"~/tmp/tmp.gff3", version="3")


    # For more information on gff3, see:
    # https://github.com/The-Sequence-Ontology/Specifications/blob/master/gff3.md

  2. ConradStack created this gist Jul 12, 2016.
    8 changes: 8 additions & 0 deletions gff3export.R
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    import(rtracklayer)

    # Where syn is a list of GRanges objects:
    test = GenomicRangesList(syn)
    export.gff(test,"~/tmp/tmp.gff3", version="3")

    # ... or a single GRanges element:
    export.gff(syn[[1]],"~/tmp/tmp.gff3", version="3")