Ejemplo n.º 1
0
        public static bool SameReference(string fastaA, string fastaB)
        {
            IGenomesReferencePath fastaAReference = null;
            IGenomesReferencePath fastaBReference = null;
            try
            {
                fastaAReference = new IGenomesReferencePath(fastaA);
            }
            catch (ArgumentException)
            { }
            try
            {
                fastaBReference = new IGenomesReferencePath(fastaB);
            }
            catch (ArgumentException)
            { }

            if (fastaAReference == null || fastaBReference == null)
                return fastaA == fastaB;
            return fastaAReference.Equals(fastaBReference);
        }
Ejemplo n.º 2
0
 private static IGenomesReferencePath SafeGetReference(string fastaPath)
 {
     IGenomesReferencePath reference = null;
     try
     {
         reference = new IGenomesReferencePath(fastaPath);
     }
     catch { }
     return reference;
 }
Ejemplo n.º 3
0
 public bool Equals(IGenomesReferencePath p)
 {
     return p.Species == Species && p.Provider == Provider && p.Build == Build;
 }