Closed:Desegregation of animals and locations
0
0
Entering edit mode
5.6 years ago
hosin • 0
Hi . I have a .txt file (660 rows) like this :

    Locations                                   Animals
    chr1:10934871-10991498   MAZ4 DLS5 AFS33
    chr1:113630180-113698152     AL108 BDP358 MFW157 MFW160 MAZ4
    chr1:131662885-131770719     MAZ4 
    chr1:133496547-133547227     FINN306  MAZ4
    chr1:134599444-134663260     MAZ4 DLS5 AFS33 AL108 BDP358 MFW157 MFW160 FINN306 
    chr1:135686897-135790910     FINN306 
    chr1:145754786-147013267     MFW157 MFW160
    chr1:147927373-148035506     MAZ4

How can I change it, like this: 

    MAZ4 
    chr1:131662885-131770719
    chr1:134599444-134663260
    chr1:147927373-148035506
    chr1:113630180-113698152
    chr1:10934871-10991498
    chr1:133496547-133547227

    DLS5
    chr1:10934871-10991498
    chr1:134599444-134663260

    AFS33
    chr1:134599444-134663260
    chr1:10934871-10991498

    AL108
    chr1:113630180-113698152
    chr1:134599444-134663260

    BDP358
    chr1:134599444-134663260
    chr1:113630180-113698152

     MFW157
    chr1:113630180-113698152
    chr1:134599444-134663260
    chr1:145754786-147013267

    MFW160 
    chr1:134599444-134663260
    chr1:113630180-113698152
    chr1:145754786-147013267

    FINN306
    chr1:133496547-133547227
    chr1:135686897-135790910
    chr1:134599444-134663260

Actually I want to classify locations based on their animals.  (linux{shell}). Please help me, Thanks.
genome • 35 views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 1829 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