시퀀스에서 백갭 제거

시퀀스에서 백갭 제거

내 시퀀스에서 이러한 실행 공백을 어떻게 제거할 수 있습니까?

\ACCATTTTTTTATAGTGA
AGTACAGTAGATATAAACCCACCACAATAGGCTGAGGCTTCC\TTATCAATAGCTTGATT
TTGGAAATACGTAGAACCCCAATGTGGTCCAAAGCTACTTGGA\CATTGGTCAAAATCCA
AGTCACATTATCGTGACCATCTTAATCTTTACATTTTTCAAAAT\GCATGAACCTTTTTC
CTCAAAAATAGCTCTAATACTTTGCTCCTATTGCGGGTCCCACAA\TACAATTTAAATTT
TACCATAATTAAAGTTACCTTAAACTCTCCGAACCTCATATGTCAC\GAACTTGAAGTCG
TACCTTTTTCCAAGTCGGCCATGGTTCATCAAATTTTTGTCTAATGA\TCCATTAGAAGA
TAATGGAAGGGCCGTGTGCTGACGTAAATATATGGAAAATGATATTAT\CAATGTCATAT
TTAAAGAATGTTATTTAAGAAAATAACTATTATATTAAAATTTACTTAC\TCTTTGTCTA
TTGCTTGAAGAAAAGGACTTTTATCAATTGGATGATAAGAGTGTAGAGAT\AGGTATTCA
GGTATCAACGAATCTTCTAGTGCTGAAGGTGTGACCACTATAGAAGGTATA\ATGGAAAT
CGATTTGGCTACAAAGGTAGGCTTTGGTTCCTACTGAACCGTAGAAAATGTG\CCCTGTT
GGACAATAGGAATTGTTGACTCTAAGGTTGAGATGTGAATGGTAGAAGTGAGA\AAGTTG
ATGGTGGCTAGAGCTCTCCCACCAACACCATGACCTTTGCCATGGTTAGATGGT\CTACA
ACCATCACTTCTACCTCTGTCCATCATCTGTATGTAGAAATTGTTACATATATGA\CAAT
TCTAAGTGAACATAAATAAACAAAGTGAAATATTATATCTTTAGTAAAAAAGAAAG\TAA
CCCAACTTATGAGAGAAAACTCAAACTTGATCATTTTTTCTACACTAAAACGTGTCA\CT
TATCTTTTCCCTCATAATCACTACAAGTAATTATTACAAATAATGGTCATACAAATGT\A

답변1

그리고 tr:

tr -d \\\\ <file_in >file_out

답변2

txt를 sed에 전달할 수 있습니다's@\\@@g'

sed 's@\\@@g' sq.txt > new.sq.txt
노트cat: 의견 제안에 따라 명령을 제거합니다.

또는 사용cat sq.txt | tr -d '\\' > new.sq.txt

관련 정보