ge11232002 / TFBSTools

Software Package for Transcription Factor Binding Site (TFBS) Analysis
25 stars 10 forks source link

How to write a `pfmlist` object to `jaspar.txt` or `cbust` format? #40

Open jiangpuxuan opened 4 months ago

jiangpuxuan commented 4 months ago

Hi everyone, it's not an issue but a discussion. I have a pfmlist object head() like this:

$M00373
       [,1]       [,2]        [,3]        [,4]        [,5]        [,6]        [,7]
A 0.4068930 0.57303098 0.976367797 0.007877401 0.821236345 0.007877401 0.007877401
C 0.2578628 0.04934392 0.007877401 0.007877401 0.007877401 0.007877401 0.976367797
G 0.1676221 0.32828118 0.007877401 0.976367797 0.163008853 0.007877401 0.007877401
T 0.1676221 0.04934392 0.007877401 0.007877401 0.007877401 0.976367797 0.007877401
         [,8]       [,9]     [,10]
A 0.976367797 0.47069725 0.2085335
C 0.007877401 0.34879221 0.2085335
G 0.007877401 0.09025527 0.2871286
T 0.007877401 0.09025527 0.2958044

Is there anyway to write it to jaspar.txt or cbust format (I read the manual but no function in TFBStools can make it) ?

Thank you for your help!