Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • diegobonatto
    Junior Member
    • Mar 2014
    • 9

    #1

    Changing text in a GTF

    Hi,

    I have the following GTF file (from Gencode):
    HTML Code:
    chr10	Yale_UCSC	transcript	3117806	3119013	.	-	.	gene_id "PGOMOU00000268019"; transcript_id "PGOMOU00000268019"; gene_type "pseudogene"; gene_status "UNKNOWN"; gene_name "PGOMOU00000268019"; transcript_type "pseudogene"; transcript_status "UNKNOWN"; transcript_name "PGOMOU00000268019"; level 3; tag "2way_pseudo_cons"; yale_id "PGOMOU00000268019"; ucsc_id "NM_019986.3-3"; parent_id "ENSMUSG00000021476
    ";
    chr10	Yale_UCSC	transcript	3139466	3141067	.	-	.	gene_id "PGOMOU00000268020"; transcript_id "PGOMOU00000268020"; gene_type "pseudogene"; gene_status "UNKNOWN"; gene_name "PGOMOU00000268020"; transcript_type "pseudogene"; transcript_status "UNKNOWN"; transcript_name "PGOMOU00000268020"; level 3; tag "2way_pseudo_cons"; yale_id "PGOMOU00000268020"; ucsc_id "BC036983.1-1"; parent_id "ENSMUSG00000028228
    ";
    I would like to change all "PGOMOU*" names for "ENSMUSG*". How it can be done in R or awk in an easy way? Sorry for naive question, but I am struggling with awk to make the changes in GTF file. PGOMOU* nomenclature is not recognized by Bowtie/TopHat. So, any input is welcome!
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

    #2
    Make a backup copy of the file before trying the following:

    Code:
    $ sed 's/PGOMOU/ENSMUSG/g' your_file > new_file
    Last edited by GenoMax; 08-22-2014, 10:38 AM.

    Comment

    • dpryan
      Devon Ryan
      • Jul 2011
      • 3478

      #3
      It's unlikely that changing this will solve whatever problem you're having. Post the actual problem and we'll try to solve it.

      Comment

      • diegobonatto
        Junior Member
        • Mar 2014
        • 9

        #4
        Thanks all!

        I'm trying to use the GTF file from Gencode that contain all pseudogenes predicted by the Yale & UCSC pipelines (but not by Havana on reference chromosomes) (ftp://ftp.sanger.ac.uk/pub/gencode/G...pseudos.gtf.gz) with the last GRCm38.p3 assembly, also from Gencode. The fastq files are OK. However, when I use Bowtie2, I'm always getting Bowtie error = 1, which could be related to PGOMOU gene nomenclature (my hypothesis). My first idea was to change all PGOMOU for ENSMUSG in order to allow Bowtie to recognize the same ID on genome...or I'm wrong?

        Comment

        • dpryan
          Devon Ryan
          • Jul 2011
          • 3478

          #5
          ENSMUSG* doesn't exist in the mouse genome (it's just used in the annotation). Please provide the exact command you used that produced the error and entire error message including the entire output that's printed to the screen.

          Comment

          • diegobonatto
            Junior Member
            • Mar 2014
            • 9

            #6
            Here it goes:

            HTML Code:
            tophat2 -p4 -G gencode.v20.2wayconspseudos.gtf -o MSCd0Adip-12 GRCh38 SRR490218_output2.fastq
            
            [2014-08-22 15:59:44] Beginning TopHat run (v2.0.9)
            -----------------------------------------------
            [2014-08-22 15:59:44] Checking for Bowtie
                              Bowtie version:        2.1.0.0
            [2014-08-22 15:59:44] Checking for Samtools
                            Samtools version:        0.1.19.0
            [2014-08-22 15:59:44] Checking for Bowtie index files (genome)..
            [2014-08-22 15:59:44] Checking for reference FASTA file
                    Warning: Could not find FASTA file GRCh38.fa
            [2014-08-22 15:59:44] Reconstituting reference FASTA file from Bowtie index
              Executing: /usr/bin/bowtie2-inspect GRCh38 > MSCd0Adip-12/tmp/GRCh38.fa
            [2014-08-22 16:02:05] Generating SAM header for GRCh38
                    format:          fastq
                    quality scale:   phred33 (default)
            [2014-08-22 16:03:07] Reading known junctions from GTF file
                    Warning: TopHat did not find any junctions in GTF file
            [2014-08-22 16:03:07] Preparing reads
                     left reads: min. length=60, max. length=66, 53983 kept reads (176 discarded)
            [2014-08-22 16:03:09] Building transcriptome data files..
            [2014-08-22 16:04:02] Building Bowtie index from gencode.v20.2wayconspseudos.fa
                    [FAILED]
            Error: Couldn't build bowtie index with err = 1
            The information is from the human GTF file and, of course, the last human genome assembly from Gencode, which generate an identical error for mouse. I'm running Bowtie together with TopHat (I known that is not necessary. Just only Bowtie is sufficient for alignment).

            thanks again!

            Comment

            • dpryan
              Devon Ryan
              • Jul 2011
              • 3478

              #7
              You can't expect an mouse annotation and a human reference sequence to be compatible (no amount of changing ID names will change that).

              Comment

              • diegobonatto
                Junior Member
                • Mar 2014
                • 9

                #8
                Yes, of course, but the example that I posted was for human (GTF AND genome) and the alignment was human Gencode pseudogene GTF with human genome assembly. When I tested the murine Gencode pseudogenes GTF AND murine genome (also from Gencode), I got the same Bowtie error.....If you look the example that I posted, the genome is from human and the GTF is from human. No murine genome OR murine GTF was used in that example.

                Comment

                • dpryan
                  Devon Ryan
                  • Jul 2011
                  • 3478

                  #9
                  Then look in the run log for the last command that tophat issued and run that yourself. You'll then get the actual underlying error message.

                  Comment

                  • diegobonatto
                    Junior Member
                    • Mar 2014
                    • 9

                    #10
                    And to reinforce that I'm not mixturing murine AND humans, each fastq is especific for each organism....

                    Again, any help is welcome!

                    Comment

                    • diegobonatto
                      Junior Member
                      • Mar 2014
                      • 9

                      #11
                      OK....TopHat indicated that "TopHat did not find any junctions in GTF file" and in run log the following command was used

                      PHP Code:
                      /usr/bin/tophat -p4 -G gencode.v20.2wayconspseudos.gtf -o MSCd0Adip-12 GRCh38 SRR490218_output2.fastq
                      /usr/bin/gtf_juncs gencode.v20.2wayconspseudos.gtf  MSCd0Adip-12/tmp/gencode.juncs
                      #>prep_reads:
                      /usr/bin/prep_reads --min-anchor 8 --splice-mismatches 0 --min-report-intron 50 --max-report-intron 500000 --min-isoform-fraction 0.15 --output-dir MSCd0Adip-12/ --max-multihits 20 --max-seg-multihits 40 --segment-length 25 --segment-mismatches 2 --min-closure-exon 100 --min-closure-intron 50 --max-closure-intron 5000 --min-coverage-intron 50 --max-coverage-intron 20000 --min-segment-intron 50 --max-segment-intron 500000 --read-mismatches 2 --read-gap-length 2 --read-edit-dist 2 --read-realign-edit-dist 3 --max-insertion-length 3 --max-deletion-length 3 -z gzip -p4 --gtf-annotations gencode.v20.2wayconspseudos.gtf --gtf-juncs MSCd0Adip-12/tmp/gencode.juncs --no-closure-search --no-coverage-search --no-microexon-search --fastq --aux-outfile=MSCd0Adip-12/prep_reads.info --index-outfile=MSCd0Adip-12/tmp/left_kept_reads.bam.index --sam-header=MSCd0Adip-12/tmp/GRCh38_genome.bwt.samheader.sam --outfile=MSCd0Adip-12/tmp/left_kept_reads.bam SRR490218_output2.fastq
                      #>map_start:
                      /usr/bin/gtf_to_fasta --min-anchor 8 --splice-mismatches 0 --min-report-intron 50 --max-report-intron 500000 --min-isoform-fraction 0.15 --output-dir MSCd0Adip-12/ --max-multihits 20 --max-seg-multihits 40 --segment-length 25 --segment-mismatches 2 --min-closure-exon 100 --min-closure-intron 50 --max-closure-intron 5000 --min-coverage-intron 50 --max-coverage-intron 20000 --min-segment-intron 50 --max-segment-intron 500000 --read-mismatches 2 --read-gap-length 2 --read-edit-dist 2 --read-realign-edit-dist 3 --max-insertion-length 3 --max-deletion-length 3 -z gzip -p4 --gtf-annotations gencode.v20.2wayconspseudos.gtf --gtf-juncs MSCd0Adip-12/tmp/gencode.juncs --no-closure-search --no-coverage-search --no-microexon-search gencode.v20.2wayconspseudos.gtf MSCd0Adip-12/tmp/GRCh38.fa MSCd0Adip-12/tmp/gencode.v20.2wayconspseudos.fa MSCd0Adip-12/logs/g2f.out
                      /usr/bin/bowtie2-build MSCd0Adip-12/tmp/gencode.v20.2wayconspseudos.fa MSCd0Adip-12/tmp/gencode.v20.2wayconspseudos 
                      Could it be possible that the search for junction by TopHat is inducing Bowtie error (again, my hypothesis. Excuse if it is to naive, but I'm struggling with this error at some days)?

                      Comment

                      • dpryan
                        Devon Ryan
                        • Jul 2011
                        • 3478

                        #12
                        Possible, is there anything in "MSCd0Adip-12/tmp/gencode.v20.2wayconspseudos.fa"?

                        Comment

                        • diegobonatto
                          Junior Member
                          • Mar 2014
                          • 9

                          #13
                          No, it empty....(0 bytes)

                          Comment

                          • dpryan
                            Devon Ryan
                            • Jul 2011
                            • 3478

                            #14
                            OK, now we're getting somewhere. That file is made by gtf_to_fasta, so something is going wrong with it. This could be the lack of junctions or it could be something else. Try running that command without the "--gtf-juncs MSCd0Adip-12/tmp/gencode.juncs" options and see what happens (I haven't a clue if it'll even run). If it runs, check to see if the resulting fasta files is empty or not.

                            Can you look through the GTF file and just see if you see any spliced transcripts? I wonder if tophat ignore pseudogenes.

                            Comment

                            • diegobonatto
                              Junior Member
                              • Mar 2014
                              • 9

                              #15
                              The comand did not work also...in fact, the GTF file just only contains spliced transcripts. Maybe running only with Bowtie alone should work. That's a weird problem...

                              Comment

                              Latest Articles

                              Collapse

                              • SEQadmin2
                                Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
                                by SEQadmin2



                                CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

                                Despite this, “CRISPR helped turn genome editing from a specialized technique into
                                ...
                                Today, 11:01 AM
                              • SEQadmin2
                                Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
                                by SEQadmin2


                                Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

                                The systematic characterization of the human proteome has
                                ...
                                07-20-2026, 11:48 AM
                              • SEQadmin2
                                Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
                                by SEQadmin2



                                Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
                                ...
                                07-09-2026, 11:10 AM

                              ad_right_rmr

                              Collapse

                              News

                              Collapse

                              Topics Statistics Last Post
                              Started by SEQadmin2, Today, 02:55 AM
                              0 responses
                              7 views
                              0 reactions
                              Last Post SEQadmin2  
                              Started by SEQadmin2, 07-24-2026, 12:17 PM
                              0 responses
                              11 views
                              0 reactions
                              Last Post SEQadmin2  
                              Started by SEQadmin2, 07-23-2026, 11:41 AM
                              0 responses
                              12 views
                              0 reactions
                              Last Post SEQadmin2  
                              Started by SEQadmin2, 07-20-2026, 11:10 AM
                              0 responses
                              24 views
                              0 reactions
                              Last Post SEQadmin2  
                              Working...