Skip to content

Issue with plotting CDS #32

@menickname

Description

@menickname

Dear

I tried to follow tutorial 2 on the example dataset and whenever plotting the CDS, I receive following error message. I have tried to resolve it myself without success.


AttributeError Traceback (most recent call last)
in <cell line: 9>()
7 elif feat.strand == -1:
8 minus_CDS.append(feat)
----> 9 gcircle.featureplot("NC_000913", source=plus_CDS, raxis_range=(700,780), facecolor="tomato")
10 gcircle.featureplot("NC_000913", source=minus_CDS, raxis_range=(780,860), facecolor="cornflowerblue")

/content/pycircos/pycircos.py in featureplot(self, garc_id, feature_type, source, raxis_range, facecolor, edgecolor, linewidth, spine)
1034 for feat in feature_list:
1035 if feat.location.strand >= 0:
-> 1036 s = int(feat.location.parts[0].start.position)
1037 e = int(feat.location.parts[-1].end.position)
1038 pos = start + ((end-start) * s/size)

AttributeError: 'ExactPosition' object has no attribute 'position'

Thank you in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions