Extract rows and substrings from one file conditional on information of another file
问题 I have a file 1.blast with coordinate information like this 1 gnl|BL_ORD_ID|0 100.00 33 0 0 1 3 27620 gnl|BL_ORD_ID|0 95.65 46 2 0 1 46 35296 gnl|BL_ORD_ID|0 90.91 44 4 0 3 46 35973 gnl|BL_ORD_ID|0 100.00 45 0 0 1 45 41219 gnl|BL_ORD_ID|0 100.00 27 0 0 1 27 46914 gnl|BL_ORD_ID|0 100.00 45 0 0 1 45 and a file 1.fasta with sequence information like this >1 TCGACTAGCTACGACTCGGACTGACGAGCTACGACTACGG >2 GCATCTGGGCTACGGGATCAGCTAGGCGATGCGAC ... >100000 TTTGCGAGCGCGAAGCGACGACGAGCAGCAGCGACTCTAGCTACTG I