Announcement

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

  • alexbmp
    replied
    @ Chipper

    Yes, I also agree using picard MergeSam instead of samtools merge.

    However I found a case that picard MergeSam doesn't take many inputs (500 inputs) when options are default.

    So in that case I used samtools merge (the files were split; they ought to have the same header).

    Leave a comment:


  • Chipper
    replied
    Use picard's MergeSam rather than samtools merge if the files have different headers.

    Leave a comment:


  • alexbmp
    replied
    I used picard AddOrReplaceReadGroups.jar on this problem.

    I think samtools also can add (actually, replace: by samtools reheader) read groups to your bam file.

    For example:
    java -Xmx4g -jar /home/lab/bin/picard/AddOrReplaceReadGroups.jar VALIDATION_STRINGENCY=LENIENT VERBOSITY=ERROR SO=unsorted INPUT=sample.cat.pic OUTPUT=sample.rga.bam RGPL=illumina RGLB=sm_1110 RGPU=barcode_1110 RGSM=sample_1110
    Any other ideas?
    Last edited by alexbmp; 11-10-2011, 02:20 AM.

    Leave a comment:


  • gaffa
    replied
    Is there a line describing the read groups in your SAM header? (you can view the header on a bam file using e.g. samtools view -H)

    Leave a comment:


  • Error "RG ID on SAMRecord not found in header" from Picard's MarkDuplicates.jar‏

    I am trying the following command:

    java -Xmx4g -jar /home/picard-tools-1.35/MarkDuplicates.jar INPUT=$dir/input.bam OUTPUT=$dir/output.bam TMP_DIR=/home/temp METRICS_FILE=PCR_duplicates REMOVE_DUPLICATES=true ASSUME_SORTED=true VALIDATION_STRINGENCY=LENIENT

    And getting lots of errors like "RG ID on SAMRecord not found in header".

    The command is still running and I haven't seen output.bam coming out... From what I saw previously, it is most likely that I will end up getting no output when the command stops.

    I used BWA for reads mapping, then SAMtools for sorting reads and merge reads from different lanes or different Illumina flowcells. For each bam file, I used the corresponding flowcell name as the prefix, e.g., FC124_1_sorted.bam.

    Since I merged different flowcells from the same Illumina machine, I used "samtools merge -r". Based on SAMtools manual, "merge -r" can attach an RG tag to each alignment. The tag value is inferred from file names.

    I am running commands in a cluster node which has 4GB RAM and 10Tb space and I assume the memory and space should be enough for picard.

    Anyone knows how to fix the error "RG ID on SAMRecord not found in header"?


    Thanks

    -C

Latest Articles

Collapse

  • seqadmin
    Advanced Tools Transforming the Field of Cytogenomics
    by seqadmin


    At the intersection of cytogenetics and genomics lies the exciting field of cytogenomics. It focuses on studying chromosomes at a molecular scale, involving techniques that analyze either the whole genome or particular DNA sequences to examine variations in structure and behavior at the chromosomal or subchromosomal level. By integrating cytogenetic techniques with genomic analysis, researchers can effectively investigate chromosomal abnormalities related to diseases, particularly...
    09-26-2023, 06:26 AM
  • seqadmin
    How RNA-Seq is Transforming Cancer Studies
    by seqadmin



    Cancer research has been transformed through numerous molecular techniques, with RNA sequencing (RNA-seq) playing a crucial role in understanding the complexity of the disease. Maša Ivin, Ph.D., Scientific Writer at Lexogen, and Yvonne Goepel Ph.D., Product Manager at Lexogen, remarked that “The high-throughput nature of RNA-seq allows for rapid profiling and deep exploration of the transcriptome.” They emphasized its indispensable role in cancer research, aiding in biomarker...
    09-07-2023, 11:15 PM
  • seqadmin
    Methods for Investigating the Transcriptome
    by seqadmin




    Ribonucleic acid (RNA) represents a range of diverse molecules that play a crucial role in many cellular processes. From serving as a protein template to regulating genes, the complex processes involving RNA make it a focal point of study for many scientists. This article will spotlight various methods scientists have developed to investigate different RNA subtypes and the broader transcriptome.

    Whole Transcriptome RNA-seq
    Whole transcriptome sequencing...
    08-31-2023, 11:07 AM

ad_right_rmr

Collapse

News

Collapse

Topics Statistics Last Post
Started by seqadmin, Yesterday, 09:38 AM
0 responses
9 views
0 likes
Last Post seqadmin  
Started by seqadmin, 09-27-2023, 06:57 AM
0 responses
11 views
0 likes
Last Post seqadmin  
Started by seqadmin, 09-26-2023, 07:53 AM
1 response
23 views
0 likes
Last Post seed_phrase_metal_storage  
Started by seqadmin, 09-25-2023, 07:42 AM
0 responses
17 views
0 likes
Last Post seqadmin  
Working...
X