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