Sequence interval
In [1]:
Copied!
import sys
sys.path.insert(0, '../../')
import picea
from picea import SequenceInterval
picea.__version__
import sys
sys.path.insert(0, '../../')
import picea
from picea import SequenceInterval
picea.__version__
Out[1]:
'0.0.31'
In [2]:
Copied!
interval = SequenceInterval.from_gff_line('ctg123\t.\tgene\t1000\t9000\t.\t+\t.\tID=gene00001;Name=EDEN')
interval
interval = SequenceInterval.from_gff_line('ctg123\t.\tgene\t1000\t9000\t.\t+\t.\tID=gene00001;Name=EDEN')
interval
Out[2]:
<SequenceInterval type=gene ID=gene00001 loc=ctg123..1000..9000..+ at 0x7ff6084241c0>
In [3]:
Copied!
interval.to_gff_line()
interval.to_gff_line()
Out[3]:
'ctg123\t.\tgene\t1000\t9000\t.\t+\t.\tID=gene00001;Name=EDEN'
In [4]:
Copied!
interval['parent']
interval['parent']
--------------------------------------------------------------------------- KeyError Traceback (most recent call last) Cell In[4], line 1 ----> 1 interval['parent'] File ~/work/picea/picea/docs/examples/../../picea/dag.py:36, in DAGElement.__getitem__(self, key) 35 def __getitem__(self, key): ---> 36 return self.__dict__[key] KeyError: 'parent'