Skip to content

Incorrect jasper format output #586

Closed

Description

@DoaneAS

The output from write(motifs, "jasper") is incorrect. The motif is jasper format appears correct in Python when called by print, but the output has brackets, for example:

ATGACTCATC AP-1(bZIP)/ThioMac-PU.1-ChIP-Seq(GSE21512)/Homer
A [ 0.42 0.28 0.28 0.03]
C [ 0.00 0.00 0.00 1.00]
G [ 0.01 0.00 0.96 0.02]
T [ 0.98 0.00 0.00 0.01]

There should not be brackets in jasper format.

Activity

  1. DoaneAS commented on Jul 27, 2015

    @DoaneAS
    Author

    A hacky fix:

    motif_out = write(record, "jaspar")
    chars_to_remove = ['''[''', ''']''']
    subj = motif_out
    motif_out_fixed = subj.translate(None, ''.join(chars_to_remove))

  2. mdehoon commented on Jul 31, 2015

    @mdehoon
    Contributor

    @bassounds

    There should not be brackets in jasper format.

    How do you know?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions