Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Etherella
    Member
    • Aug 2012
    • 20

    #1

    Converting GEO database TXT format to fasta

    Hello!

    I'm new to bioinformatics, but I need to perform an analysis of some sort.

    I've downloaded data from GEO database it's a large TXT file consisting of many lines that look this way : SCS_0004:2:1:1053:18066#0/1 AGCAATATTGACTACANCCTCATCAAAGCCTGTAGGCACC [YITQR]MST\WN\\TEQU[`]WU]]WPYXXXOXU]`\W` 5 29 29 chr17:68048647-68172163_36129 3979 + 1 1

    I need to align those short sequences to a mouse chromosome, and I'm using bowtie under windows.

    But the problem is , bowtie doesn't work with this format, can you recommend an easy-to-use tool for windows to convert this format into fasta or just raw?
  • vivek_
    PhD Student
    • Jul 2012
    • 164

    #2
    This could be done with the unix command line but it would be helpful if you can post a few lines enclosed within code brackets like
    Code:
    paste here
    to get a precise idea of the file format.

    Comment

    • Etherella
      Member
      • Aug 2012
      • 20

      #3
      Originally posted by vivek_ View Post
      This could be done with the unix command line but it would be helpful if you can post a few lines enclosed within code brackets like
      Code:
      paste here
      to get a precise idea of the file format.
      Code:
      SCS_0004:2:1:1053:18066#0/1	AGCAATATTGACTACANCCTCATCAAAGCCTGTAGGCACC	[YITQR]MST\WN\\TEQU[`]WU]]WPYXXXOXU]`\W`	5	29	29	chr17:68048647-68172163_36129	3979	+	1	1
      SCS_0004:2:1:1053:18066#0/1	AGCAATATTGACTACANCCTCATCAAAGCCTGTAGGCACC	[YITQR]MST\WN\\TEQU[`]WU]]WPYXXXOXU]`\W`	5	29	29	chr17:68048647-68172163_36130	3979	+	1	1
      SCS_0004:2:1:1053:18066#0/1	AGCAATATTGACTACANCCTCATCAAAGCCTGTAGGCACC	[YITQR]MST\WN\\TEQU[`]WU]]WPYXXXOXU]`\W`	5	29	29	uc008dkh.1	4033	+	1	1
      SCS_0004:2:1:1053:18066#0/1	AGCAATATTGACTACANCCTCATCAAAGCCTGTAGGCACC	[YITQR]MST\WN\\TEQU[`]WU]]WPYXXXOXU]`\W`	5	29	29	chr17:68046720-68172163_36128	3943	+	1	1
      SCS_0004:2:1:1053:18066#0/1	AGCAATATTGACTACANCCTCATCAAAGCCTGTAGGCACC	[YITQR]MST\WN\\TEQU[`]WU]]WPYXXXOXU]`\W`	5	29	29	chr17:68046720-68172163_36127	3943	+	1	1
      SCS_0004:2:1:1054:5070#0/1	TTTCTCTGTCTTGTCCNCCTAGTTTCCCTCCTGTAGGCAC	aaaaaaaaaaaaaaa]EaaaW]]]Yaa\a`[aa]Pa^]VT	2	30	30	chr2:40378133-40378584_42654	395	-	1	1
      SCS_0004:2:1:1054:5070#0/1	TTTCTCTGTCTTGTCCNCCTAGTTTCCCTCCTGTAGGCAC	aaaaaaaaaaaaaaa]EaaaW]]]Yaa\a`[aa]Pa^]VT	2	30	30	chr1:8926487-8927380_99	16	+	1	1
      Something like this. By the way, I don't have unix installed only Mac OS and windows, but as far as I understand Mac OS is a unix-based system, right?
      Last edited by Etherella; 08-30-2012, 03:03 AM.

      Comment

      • dpryan
        Devon Ryan
        • Jul 2011
        • 3478

        #4
        The easiest way would be to write a small script (in python, perl, whatever) to read that in and spit out the same data (sans alignment information) in fastq format. Column 1 is the read id, column 2 is the sequence, and column 3 is the quality score. If you have python installed on your Mac, then the following would probably work (changing INPUT_FILENAME to the name of the file you got from GEO and SOME_OUTPUT_FILE to whatever you want the output to be):
        Code:
        #!/usr/bin/python
        import csv
        
        f = csv.reader(open("INPUT_FILENAME", "r"), dialect="excel-tab")
        output = open("SOME_OUTPUT_FILE", "w")
        
        last = ""
        for line in f :
            if(line[0] != last) :
                output.write(">%s\n" % (line[0]))
                output.write("%s\n" % (line[1]))
                output.write("+\n") 
                output.write("%s\n" % (line[2]))
                last = line[0]
        output.close()
        Something like that would probably work.

        Comment

        • Etherella
          Member
          • Aug 2012
          • 20

          #5
          thanks for the reply, I managed to get it working through galaxy.

          Comment

          Latest Articles

          Collapse

          • SEQadmin2
            Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
            by SEQadmin2



            Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

            Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
            ...
            10-14-2026, 09:55 AM
          • SEQadmin2
            New Genomics Technologies Take Aim at Long-Standing Limits
            by SEQadmin2


            Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

            We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
            ...
            09-28-2026, 10:25 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by SEQadmin2, Yesterday, 11:13 AM
          0 responses
          16 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, Yesterday, 10:48 AM
          0 responses
          18 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-15-2026, 10:52 AM
          0 responses
          35 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-14-2026, 05:39 AM
          0 responses
          42 views
          0 reactions
          Last Post SEQadmin2  
          Working...