This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Desegregation of animals and locations
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

Hello hosein_salehi6!

Please do not post duplicates.

For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.

If you disagree please tell us why in a reply below, we'll be happy to talk about it.

Cheers!

0 answers

No answers yet.

Log in to answer this question.