2 * Copyright (c) 2010 Agnieszka Golicz & Peter Troshin
4 * Amino Acid Conservation @version: 1.0
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the Apache License version 2 as published by the
8 * Apache Software Foundation This library is distributed in the hope that it
9 * will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
10 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Apache
11 * License for more details. A copy of the license is in apache_license.txt. It
12 * is also available here: http://www.apache.org/licenses/LICENSE-2.0.txt
13 * Any republication or derived work distributed in source code form must
14 * include this copyright and license notice.
17 package compbio.data.sequence;
20 * Enumeration listing of all the supported methods.
22 * @author Agnieszka Golicz & Peter Troshin
25 KABAT, JORES, SCHNEIDER, SHENKIN, GERSTEIN, TAYLOR_GAPS, TAYLOR_NO_GAPS, ZVELIBIL, KARLIN, ARMON, THOMPSON, NOT_LANCET, MIRNY, WILLIAMSON, LANDGRAF, SANDER, VALDAR, SMERFS;
27 public static Method getMethod(String meth) {
28 meth = meth.trim().toLowerCase();
29 if (meth.equalsIgnoreCase(KABAT.toString())) {
32 if (meth.equalsIgnoreCase(JORES.toString())) {
35 if (meth.equalsIgnoreCase(SCHNEIDER.toString())) {
38 if (meth.equalsIgnoreCase(SHENKIN.toString())) {
41 if (meth.equalsIgnoreCase(GERSTEIN.toString())) {
44 if (meth.equalsIgnoreCase(TAYLOR_GAPS.toString())) {
47 if (meth.equalsIgnoreCase(TAYLOR_NO_GAPS.toString())) {
48 return TAYLOR_NO_GAPS;
50 if (meth.equalsIgnoreCase(ZVELIBIL.toString())) {
53 if (meth.equalsIgnoreCase(KARLIN.toString())) {
56 if (meth.equalsIgnoreCase(ARMON.toString())) {
59 if (meth.equalsIgnoreCase(THOMPSON.toString())) {
62 if (meth.equalsIgnoreCase(NOT_LANCET.toString())) {
65 if (meth.equalsIgnoreCase(MIRNY.toString())) {
68 if (meth.equalsIgnoreCase(WILLIAMSON.toString())) {
71 if (meth.equalsIgnoreCase(LANDGRAF.toString())) {
74 if (meth.equalsIgnoreCase(SANDER.toString())) {
77 if (meth.equalsIgnoreCase(VALDAR.toString())) {
80 if (meth.equalsIgnoreCase(SMERFS.toString())) {