コード例 #1
0
ファイル: BamCommon.cs プロジェクト: arnoldliaoILMN/Pisces
        public CigarAlignment DeepCopy()
        {
            CigarAlignment val = new CigarAlignment();

            foreach (CigarOp op in _data)
            {
                val.Add(op.DeepCopy());
            }
            return(val);
        }
コード例 #2
0
ファイル: BamCommon.cs プロジェクト: arnoldliaoILMN/Pisces
        /// <summary>
        ///  Copy constructor.
        /// </summary>
        public BamAlignment(BamAlignment a)
        {
            AlignmentFlag  = a.AlignmentFlag;
            Bases          = a.Bases;
            Bin            = a.Bin;
            CigarData      = new CigarAlignment(a.CigarData.ToString());
            FragmentLength = a.FragmentLength;
            MapQuality     = a.MapQuality;
            MatePosition   = a.MatePosition;
            MateRefID      = a.MateRefID;
            Name           = a.Name;
            Position       = a.Position;
            Qualities      = new byte[a.Qualities.Length];
            Array.Copy(a.Qualities, Qualities, Qualities.Length);

            RefID        = a.RefID;
            TagData      = a.TagData;
            _endPosition = a._endPosition;
        }
コード例 #3
0
ファイル: BamCommon.cs プロジェクト: arnoldliaoILMN/Pisces
        /// <summary>
        /// constructor
        /// </summary>
        public BamAlignment()
        {
            //tjd+
            //
            //This is a deliberate departure from the Isas lib (which leaves these two values unset)
            //When this is set to 0 (by simply being left unset)
            //that is a real index value. So trouble can occur wehn unmapped reads might appear to have a mate at ChrM.
            //How best to refactor this is currently under discussion with the Isas team.
            //
            //Related PISCES pull request:
            //(see BamAlignment constructor in BamCommon.cs):
            //https://git.illumina.com/Bioinformatics/Pisces5/pull/495/files
            //Related ISAS pull request:
            //https://git.illumina.com/Isas/SequencingFiles/pull/127
            //
            //tjd-

            MatePosition = -1;
            MateRefID    = -1;
            //tjd-

            CigarData    = new CigarAlignment();
            _endPosition = null;
        }
コード例 #4
0
ファイル: BamCommon.cs プロジェクト: arnoldliaoILMN/Pisces
 public CigarAlignment(CigarAlignment other)
 {
     _data = new List <CigarOp>(other._data);
 }
コード例 #5
0
        public byte[] TagData;           // Tag data (accessors will pull the requested information out)

        // constructor
        public BamAlignment()
        {
            MatePosition = -1;
            MateRefID    = -1;
            CigarData    = new CigarAlignment();
        }