Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    >q6gqm1_danre
    mrecisvhvgqagvqignacwelyclehgiqadghmp-------sdhttsggdqsfntffsetgagkhvpravfvdleptvvdevrtgtyrqlfhpeqlitgkedaannyarghytigkeivdlvldrvrklcdqctglqgflifhsfgggtgsgfasllmerlsvdygkkaklefavypapqvstavvepynsiltthttlehsdcafmvdneaiydicrrnldierptytnlnrligqivssitaslrfdgalnvdltefqtnlvpyprihfplvtyapvisaekayheqlsvveitnacfepanqmvkcdprhgkymaccmlyrgdvvpkdvnaaigsiktkrtiqfvdwcptgfkvginyqpptvvpggdlakvqravcmlsnttaiaeawarldhkfdlmyakrafvhwyvgegmeegefaearedlaalekdyeevgvdtidgegeaegee
    >tba3_drome
    mrecisihvgqagvqignacwelyclehgiqpdgqmp-------sdktvgggddsfntffsetgagkhvpravfvdleptvvdevrtgtyrqlfhpeqlitgkedaannyarghytigkeivdlvldrirkladqctglqgflifhsfgggtgsgftsllmerlsvdygkksklefavypapqvstavvepynsiltthttlehsdcafmvdneaiydicrrnldierptytnlnrligqivssitaslrfdgalnvdltefqtnlvpyprihfplvtyapvisaekayheqlsvaeitnacfepanqmvkvdprhgkymaccmlyrgdvvpkdvnaaiatiktkrtiqfvdwcptgfkvginyqpptvvpggdlakvqravcmlsnttaiaeawarldhkfdlmyakrafvhwyvgegmeegefsearedlaalekdyeevgmdsgdgegegaeey
    >tba3_arath
    mreiisihigqagiqvgnscwelyclehgiqpdgmmp-------sdttvgvahdafntffsetgagkhvpravfvdleptvidevrtgtyrqlfhpeqlisgkedaannfarghytvgkeivdlcldrvrkladnctglqgflvfnavgggtgsglgslllerlsvdygkksklgftiypspqvstavvepynsvlsthsllehtdvavlldneaiydicrrsldierptytnlnrlisqiisslttslrfdgainvditefqtnlvpyprihfmlssyapvisaakayheqlsvpeitnavfepasmmakcdprhgkymacclmyrgdvvpkdvnaavgtiktkrtvqfvdwcptgfkcginyqpptvvpggdlakvqravcmisnntavaevfsridhkfdlmyakrafvhwyvgegmeegefsearedlaalekdyeevgaeggddeedegedy
    >tba2_caeel
    mrevisihvgqagvqignacwelyclehgiqpdgtmp-------tqstneg--esfttffsdtgsgryvprsifvdleptvvdeirtgtykklfhpeqmitgkedaannyarghytvgkelidtvldrirrladncsglqgffvfhsfgggtgsgftsllmerlsvdygkksklefsiypapqvstavvepynsiltthttlehsdcafmvdneaiydicrrnldverpsytnlnriisqvvssitaslrfdgalnvdlnefqtnlvpyprihfplaaytplisaekayhealsvsditnscfepanqmvkcdprhgkymavcllyrgdvvpkdvntaiaaiktkrtiqfvdwcptgfkvginyqpptvvpggdlakvpravcmlsnttaiaeawsrldykfdlmyakrafvhwyvgegmeegeftearedlaalekdyeevgadsneggeeegeey
    >tba3_yeast
    mrevisinvgqagcqignacwelyslehgikedghled------glskpkggeegfstffhetgygkfvpraiyvdlepnvidevrtgrfkelfhpeqlingkedaannyarghytvgreivdeveerirkmadqcdglqgflfthslgggtgsglgslllenlsyeygkksklefavypapqlstsvvepyntvltthttlehadctfmvdneaiydickrnlgisrpsfsnlngliaqvissvtaslrfdgslnvdlnefqtnlvpyprihfplvsyapilskkrathesnsvseitnacfepgnqmvkcdptkgkymancllyrgdvvtrdvqraveqvknkktvqmvdwcptgfkigicyeppsvipsselanvdravcmlsnttaiadawkridqkfdlmyakrafvhwyvgegmeegeftearedlaalerdyievgadsyaeef------
    >tbal3_human
    mreclsihigqagiqigdacwelyclehgiqpngvvldtqqdqlenakmehtnasfdtffcetragkhvpralfvdleptvidgirtgqhrslfhpeqllsgkedaannyargrysvgsevidlvlertrklaeqcgglqgflifrsfgggtgsgftsllmerltgeysrktklefsvypapristavvepynsvltthsttehtdctfmvdneavydichrklgvecpshasinrlvvqvvssitaslrfegplnvdliefqtnlvpyprihfpmtafapivsadkayheqfsvsdittacfessnqlvkcdprlgkymaccllyrgdvvpkevnaaiaatksrhsvqfvdwcptgfkvginnrpptvmpggdlakvhrsicmlsnttaiveawarldhkfdlmyakraflhwylregmeeaeflearedlaalerdyeevaqsf-----------
    >q6dht2_danre
    mgkekihinivvighvdsgkstttghliykcggidkrtiekfekeaaemgkgsfkyawvldklkaerergitidislwkfettkyyitiidapghrdfiknmitgtsqadcavlivaagvgefeagiskngqtrehallaytlgvkqlivavnkmdstepsysekrydeivkevsayikkigyspasvpfvpisgwhgdnmlepssnmpwfkgwkldrkehhaggvtllealdtimpptrptdkplrlplqdvykiggigtvpvgrvetgvlrpsmvvtfapvnittevksvemhheslsealpgdnvgfnvknvsvkdirrgnvcgdsksdppqeasgftaqviilnhpgqissgyspvidchtahiackfaelkekidrrsgkklednpkslksgdaaivdmipgkpmcvesfsqypplgrfavrdmrqtvavgviknvekkiggsgrvtksaqkaqkssk
    >q6ips9_human
    mgkekthinivvighvdsgkstttghliykcggidkrtiekfekeaaemgkgsfkyawvldklkaerergitidislwkfetskyyvtiidapghrdfiknmitgtsqadcavlivaagvgefeagiskngqtrehallaytlgvkqlivgvnkmdsteppysqkryeeivkevstyikkigynpdtvafvpisgwngdnmlepsanmpwfkgwkvtrkdgnasgttllealdcilpptrptdkplrlplqdvykiggigtvpvgrvetgvlkpgmvvtfapvnvttevksvemhhealsealpgdnvgfnvknvsvkdvrrgnvagdskndppmeaagftaqviilnhpgqisagyapvldchtahiackfaelkekidrrsgkkledgpkflksgdaaivdmvpgkpmcvesfsdypplgrfavrdmrqtvavgvikavdkkaagagkvtksaqkaqkak-
    >a4v3q6_drome
    mgkekihinivvighvdsgkstttghliykcggidkrtiekfekeaqemgkgsfkyawvldklkaerergitidialwkfetskyyvtiidapghrdfiknmitgtsqadcavlivaagtgefeagiskngqtrehallaftlgvkqlivgvnkmdsteppysearyeeikkevssyikkigynpasvafvpisgwhgdnmlepsekmpwfkgwsverkegkaegkclidaldailppqrptdkplrlplqdvykiggigtvpvgrvetgllkpgmvvnfapvnlvtevksvemhhealteampgdnvgfnvknvsvkelrrgyvagdsknnpprgaadftaqvivlnhpgqiangytpvldchtahiackfseikekcdrrtgkttetepkaiksgdaaiivlvpskplcvesfqefpplgrfavrdmrqtvavgviksvnfkettsgkvtkaaekaqkkk-
    >ef1a_caeel
    mgkekvhinivvighvdsgkstttghliykcggidkrtiekfekeaqemgkgsfkyawvldklkaerergitidialwkfetakyyitiidapghrdfiknmitgtsqadcavlvvacgtgefeagiskngqtrehallaqtlgvkqlivacnkmdsteppfsearfteitnevsgfikkigynpkavpfvpisgfngdnmlevssnmpwfkgwaverkegnasgktllealdsiippqrptdrplrlplqdvykiggigtvpvgrvetgiikpgmvvtfapqnvttevksvemhheslpeavpgdnvgfnvknvsvkdirrgsvcsdskqdpakeartfhaqviimnhpgqisngytpvldchtahiackfnelkekvdrrtgkkvedfpkflksgdagiveliptkplcvesftdyaplgrfavrdmrqtvavgviksveksdgssgkvtksaqkaapkkk
    >ef1a_yeast
    mgkekshinvvvighvdsgkstttghliykcggidkrtiekfekeaaelgkgsfkyawvldklkaerergitidialwkfetpkyqvtvidapghrdfiknmitgtsqadcailiiaggvgefeagiskdgqtrehallaftlgvrqlivavnkmdsvk--wdesrfqeivketsnfikkvgynpktvpfvpisgwngdnmieattnapwykgweketkagvvkgktlleaidaieqpsrptdkplrlplqdvykiggigtvpvgrvetgvikpgmvvtfapagvttevksvemhheqleqgvpgdnvgfnvknvsvkeirrgnvcgdakndppkgcasfnatvivlnhpgqisagyspvldchtahiacrfdellekndrrsgkkledhpkflksgdaalvkfvpskpmcveafseypplgrfavrdmrqtvavgviksvdktek-aakvtkaaqkaakk--
    >ef1a_arath
    mgkekfhinivvighvdsgkstttghliyklggidkrvierfekeaaemnkrsfkyawvldklkaerergitidialwkfettkyyctvidapghrdfiknmitgtsqadcavliidsttggfeagiskdgqtrehallaftlgvkqmicccnkmdattpkyskarydeiikevssylkkvgynpdkipfvpisgfegdnmierstnldwyk------------gptllealdqinepkrpsdkplrlplqdvykiggigtvpvgrvetgmikpgmvvtfaptglttevksvemhhesllealpgdnvgfnvknvavkdlkrgyvasnskddpakgaanftsqviimnhpgqigngyapvldchtshiavkfseiltkidrrsgkeiekepkflkngdagmvkmtptkpmvvetfseypplgrfavrdmrqtvavgviksvdkkdptgakvtkaavkkgak--
    >q6nwb3_danre
    ------------maagpisernqdatvyvggldekvsepllwelflqagpvvnthmpkdrvtgqhqgygfveflseedadyaikimn-miklygkpirvnkasahnknldvg-----------anifignldpeidekllydtfsafgvilqtpkimrdpdtgnskgyafinfasfdasdaaieamngqylcnrpitvsyafkkdskg-erhgsaaerllaaqnplsqadrphqlfadappppsmptpvmtalgaampipgmpppgafpp-vpppgtmppgmppgmpmppapg---tpapqggggpppghp--------pfppagmhppgmphmpmpptgppgmvppppgppgsnqprapppp----qmppppmgvpprgp-fgppmgpp--mhpgmrgppppmpppgygagpprpppfgfqrgppmpprpp-----aprgpmrapaps
    >sf3b4_human
    ------------maagpisernqdatvyvggldekvsepllwelflqagpvvnthmpkdrvtgqhqgygfveflseedadyaikimn-miklygkpirvnkasahnknldvg-----------anifignldpeidekllydtfsafgvilqtpkimrdpdtgnskgyafinfasfdasdaaieamngqylcnrpitvsyafkkdskg-erhgsaaerllaaqnplsqadrphqlfadappppsapnpvvsslgsglpppgmpppgsfpppvpppgalppgippamppppmppgaaghgppsagtpgaghpghghshphpfppggmphpgmsqmqlahhgphglghphagppgsggqppprpppgmphpgpppmgmpprgppfgspmghpgpmpphgmrgppplmpphgytgpprpppygyqrgplppprptprppvpprgplrgplpq
    >q9w424_drome
    ------------maagpiaernqdatiyagglddkvsetllwelfvqagpvvnvhmpkdrvtqmhqgygfveflseedadygikimn-miklygkpirvnkasahqknldvg-----------anifignldvevdekllydtfsafgvilqtpkimrdpetgksksfafinfasfeasdaamdamngqylcnrpisvsyafkkdhkg-erhgsaaerllaaqnpsthadrphqlfadapvqtmmpqmpgqipaqmpgqmmpppmmappppvvpvsnnnmgmlappppvpqpapfpatipppplppmtggqp-------plppamgipppprmmqpnawappgmpappprppptnwrpppvpfpptpyarpyqpdgyqy----------------------------------------------------------------------
    >sf3b4_caeel
    ------------msagpivernqdatiyvggldekvsesilwelmvqagpvvsvnmpkdrvtanhqgfgfvefmgeedadyaikiln-miklygkpikvnkasaheknmdvg-----------anifvgnldpevdekllydtfsafgvilqvpkimrdvdsgtskgfafinfasfeasdtaleamngqflcnraitvsyafkrdskg-erhgtaaermlaaqnplfpkdrphqvfsdvplgvpantplampgvhaaiaahatgrpgyqppplmgmaqsgyqgqyppvpppppsvtpmpppmpptpgmtprpp------pppssgmwppppppppgrtpgppgmpgmppppppsrfgppgmggmppppppgmrypggmpppppprypsagpgmypppppsrppappsghgmipppppps------------------------------
    >q9zu66_arath
    mttriapgvganllgqhsaernqdatvyvggldaqlseellwelfvqagpvvnvyvpkdrvtnlhqnygfieyrseedadyaikvln-miklhgkpirvnkasqdkksldvg-----------anlfignldpdvdekllydtfsafgviasnpkimrdpdtgnsrgfgfisydsfeasdaaiesmtgqylsnrqitvsyaykkdtkg-erhgtpaerllaatnptaqksrphtlfamgppssapqvnglprpfangsmqpvpipaprqppppppqvyqtqppswpsqpqqhsmvpppmqfrppqgmppppppqflnhqqgfggprpppppqamgmhqhggwppqhmqqqggppqqqqppyqhhhmsmppppphqg-------------------------------------------------------------------------
    >hsh49_yeast
    ----------------mnysadsgntvyvgnidpritkeqlyelfiqinpvlrikypkdkvlqayqgyafiefynqgdaqyaikimnntvrlydrlikvrqvtnstgttnlpsniskdmilpiaklfiknladsidsdqlvkifnkfgklirepeifylsng--klkcayvyfedfekadlaikslnnqlvannritvdyafkengkgnakygddvdrllnkealkhnmlk--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Comment


    • #17
      OK try this

      Code:
      #!/bin/sh
      #save as split2.sh
      
      perl -e '$count=0; $len=0; while(<>) {s/\r?\n//; s/\t/ /g; if (s/^>//) { if ($. != 1) {print "\n"} s/ |$/\t/; $count++; $_ .= "\t";} else {s/ //g; $len += length($_)};print }'  $1 | perl -lane '$species=$1 if $F[0] =~ /_(\S+)/; $h{$species}.="$F[1]\n"; END { print ">$_\n$h{$_}" for keys %h  }  '

      bash split2.sh <input file>

      Comment


      • #18
        It works great but it will be great if coonect the last letter of first part to the first letter to next part
        like:
        AAA
        BBB
        be like AAABBB
        tanks so much for your help

        Comment


        • #19
          This should do it.

          Code:
          #!/bin/sh
          
          #split3.sh
          
           perl -e '$count=0; $len=0; while(<>) {s/\r?\n//; s/\t/ /g; if (s/^>//) { if ($. != 1) {print "\n"} s/ |$/\t/; $count++; $_ .= "\t";} else {s/ //g; $len += length($_)};print }'  $1  | perl -lane '$species=$1 if $F[0] =~ /_(\S+)/; $h{$species}.="$F[1]"; END { print ">$_\n$h{$_}" for keys %h  }  '

          Comment


          • #20
            Hi Zee,
            Thanks so much for your help

            Comment

            Latest Articles

            Collapse

            • seqadmin
              Advancing Precision Medicine for Rare Diseases in Children
              by seqadmin




              Many organizations study rare diseases, but few have a mission as impactful as Rady Children’s Institute for Genomic Medicine (RCIGM). “We are all about changing outcomes for children,” explained Dr. Stephen Kingsmore, President and CEO of the group. The institute’s initial goal was to provide rapid diagnoses for critically ill children and shorten their diagnostic odyssey, a term used to describe the long and arduous process it takes patients to obtain an accurate...
              12-16-2024, 07:57 AM
            • seqadmin
              Recent Advances in Sequencing Technologies
              by seqadmin



              Innovations in next-generation sequencing technologies and techniques are driving more precise and comprehensive exploration of complex biological systems. Current advancements include improved accessibility for long-read sequencing and significant progress in single-cell and 3D genomics. This article explores some of the most impactful developments in the field over the past year.

              Long-Read Sequencing
              Long-read sequencing has seen remarkable advancements,...
              12-02-2024, 01:49 PM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by seqadmin, 12-17-2024, 10:28 AM
            0 responses
            27 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 12-13-2024, 08:24 AM
            0 responses
            43 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 12-12-2024, 07:41 AM
            0 responses
            29 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 12-11-2024, 07:45 AM
            0 responses
            42 views
            0 likes
            Last Post seqadmin  
            Working...
            X