예제 #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);
        }
예제 #2
0
 private static IGenomesReferencePath SafeGetReference(string fastaPath)
 {
     IGenomesReferencePath reference = null;
     try
     {
         reference = new IGenomesReferencePath(fastaPath);
     }
     catch { }
     return reference;
 }
예제 #3
0
 public bool Equals(IGenomesReferencePath p)
 {
     return p.Species == Species && p.Provider == Provider && p.Build == Build;
 }