logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Bio::Tradis::AddTagsToSeq - Takes a BAM file and creates a new BAM with tr and tq tags added to the

Author

       Carla Cummins <path-help@sanger.ac.uk>

Methods

       "add_tags_to_seq" - add TraDIS tags to reads. For unmapped reads, the tag                       is added
       to the start of the read sequence and quality                       strings. For reads where the flag
       indicates that it is                       mapped and reverse complemented, the reverse complemented
                             tags are added to the end of the read strings.                        This is
       because many conversion tools (e.g. picard) takes                       the read orientation into account
       and will re-reverse the                       mapped/rev comp reads during conversion, leaving all tags
                             in the correct orientation at the start of the sequences                       in
       the resulting FastQ file.

Name

       Bio::Tradis::AddTagsToSeq

Parameters

Required
       "bamfile" - path to/name of file containing reads and tags

   Optional
       "outfile" - name to assign to output BAM. Defaults to "file.tr.bam" for an input file named "file.bam"

Synopsis

       Bio::Tradis::AddTagsToSeq parses BAM files, adds given tags to the start of the sequence and creates
       temporary SAM file, which is then converted to BAM

          use Bio::Tradis::AddTagsToSeq;

          my $pipeline = Bio::Tradis::AddTagsToSeq->new(bamfile => 'abc');
          $pipeline->add_tags_to_seq();

Version

       version 1.4.5

See Also