converter format asn to gff
0
1
Entering edit mode
6.9 years ago
mimi ▴ 20

Hi,

I used prosplign ( https://www.ncbi.nlm.nih.gov/sutils/static/prosplign/prosplign.html). It generated a file ASN, but I need a gff3 format

Do you know an affective converter?

I used asn2flat -i file.asn -format gff3 -o out (but it does not support the gff3 format, it advises to use annotwriter to ncbi)

annotwriter -i file.asn -format gff3 -o out (It shows me errors)

Error: (311.26) SOCK#3000[3]@130.14.29.112:4445: [SOCK::Connect]  Failed pending connect(): Timeout[5.000000]
Error: (310.6) [ID2]  Stateful relay connection failure (Closed) usually indicates possible firewall configuration problems; please consult <http://www.ncbi.nlm.nih.gov/IEB/ToolBox/NETWORK/dispatcher.html#Firewalling>
Error: (301.5) [CONN_Open(ID2)]  Failed to open connection: Closed
Error: (311.26) SOCK#6000[3]@130.14.29.112:4445: [SOCK::Connect]  Failed pending connect(): Timeout[5.000000]
Error: (310.6) [ID2]  Stateful relay connection failure (Closed) usually indicates possible firewall configuration problems; please consult <http://www.ncbi.nlm.nih.gov/IEB/ToolBox/NETWORK/dispatcher.html#Firewalling>
Error: (301.5) [CONN_Open(ID2)]  Failed to open connection: Closed
Error: (311.26) SOCK#9000[3]@130.14.29.112:4454: [SOCK::Connect]  Failed pending connect(): Timeout[5.000000]
Error: (310.6) [ID2]  Stateful relay connection failure (Closed) usually indicates possible firewall configuration problems; please consult <http://www.ncbi.nlm.nih.gov/IEB/ToolBox/NETWORK/dispatcher.html#Firewalling>
Error: (301.5) [CONN_Open(ID2)]  Failed to open connection: Closed
Error: (311.26) SOCK#12000[3]@130.14.29.112:4454: [SOCK::Connect]  Failed pending connect(): Timeout[5.000000]
Error: (310.6) [ID2]  Stateful relay connection failure (Closed) usually indicates possible firewall configuration problems; please consult <http://www.ncbi.nlm.nih.gov/IEB/ToolBox/NETWORK/dispatcher.html#Firewalling>
Error: (301.5) [CONN_Open(ID2)]  Failed to open connection: Closed
Error: (311.26) SOCK#15000[3]@130.14.29.112:4445: [SOCK::Connect]  Failed pending connect(): Timeout[5.000000]
Error: (310.6) [ID2]  Stateful relay connection failure (Closed) usually indicates possible firewall configuration problems; please consult <http://www.ncbi.nlm.nih.gov/IEB/ToolBox/NETWORK/dispatcher.html#Firewalling>
Error: (301.5) [CONN_Open(ID2)]  Failed to open connection: Closed
Error: (CLoaderException::eConnectionFailed) cannot open connection: ID2
Error: (CLoaderException::eNoConnection) cannot open initial connection
Error: (106.16) Application's execution failed(CLoaderException::eNoConnection) cannot open initial connection
ASN GFF3 • 2.3k views
ADD COMMENT
0
Entering edit mode

is there a XML output ? can you post a sample ?

ADD REPLY
0
Entering edit mode

The asn format to prosplign :

Seq-align ::= {
  type disc,
  dim 2,
  score {
    {
      id str "num_ident",
      value int 0
    },
    {
      id str "num_positives",
      value int 0
    },
    {
      id str "num_negatives",
      value int 0
    },
    {
      id str "product_gap_length",
      value int 0
    },
    {
      id str "genomic_gap_length",
      value int 0
    },
    {
      id str "align_length",
      value int 0
    },
    {
      id str "product_internal_gap_length",
      value int 0
    }
  },
  segs spliced {
    product-id swissprot {
      accession "A0A023H3J7"
    },
    genomic-id local str "Lsta_scaffold1",
    genomic-strand plus,
    product-type protein,
    exons {
    },
    product-length 219
  },
  bounds {
    whole swissprot {
      accession "A0A023H3J7"
    },
    int {
      from 4280885,
      to 4282070,
      strand plus,
      id local str "Lsta_scaffold1"
    }
  },
  ext {
    {
      type str "info",
      data {
        {
          label str "CompartmentId",
          data int 1
        }
      }
    }
  }
 }
ADD REPLY
0
Entering edit mode

Please use ADD COMMENT/ADD REPLY when responding to existing posts to keep threads logically organized.

ADD REPLY
0
Entering edit mode

That is not XML format output so not what @Pierre was asking. Do you know if prosplign is able to output XML?

ADD REPLY
2
Entering edit mode

Duplicate question: Question: converting ASN to Gff3

prosplign -f x can output xml.

ADD REPLY
0
Entering edit mode

Sorry !

Can I convert this xml format to gff3 ? Thanks

ADD REPLY
1
Entering edit mode

Please do NOT add comments as new answers. Use ADD COMMENT/ADD REPLY buttons when responding to existing posts to keep threads logically organized.

ADD REPLY
0
Entering edit mode

Oups! Sorry @genomax

ADD REPLY
0
Entering edit mode

if the XML is simple , one can use XSLT to transform it to something. while ASN1 requires a specific parser.

ADD REPLY

Login before adding your answer.

Traffic: 2029 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6