public static String print(SequenceI[] s, int len) {\r
return print(s,len,true);\r
}\r
+\r
public static String print(SequenceI[] s, int len,boolean gaps) {\r
+ return print(s,len,gaps,true);\r
+ }\r
+\r
+ public static String print(SequenceI[] s, int len,boolean gaps, boolean displayId) {\r
StringBuffer out = new StringBuffer();\r
int i = 0;\r
while (i < s.length && s[i] != null) {\r
} else {\r
seq = AlignSeq.extractGaps("-. ",s[i].getSequence());\r
}\r
-\r
- out.append(">" + s[i].getName() + "/" + s[i].getStart() + "-" + s[i].getEnd() + "\n");\r
+ // used to always put this here: + "/" + s[i].getStart() + "-" + s[i].getEnd() +\r
+ out.append(">" + ((displayId) ? s[i].getDisplayId() : s[i].getName())+"\n");\r
\r
int nochunks = seq.length() / len + 1;\r
\r
for (int i=0; i<sequences.length; i++) {
myseq[i] = new Sequence(sequences[i]);
}
- // Uniqueify, and
+ // Uniqueify, and
Hashtable namemap = uniquify(myseq);
// Load sequence file into hash
-
+
filesToMove.put("jalseqs.fasta",
- jalview.io.FastaFile.print(myseq,124,false).getBytes());
+ jalview.io.FastaFile.print(myseq,124,false, false).getBytes());
if(vamsas_server.getUseAuth() == true)
if(vamsas_server.getServiceUserName() == null)
String alfile = h.get(thiskey).toString();
String format = IdentifyFile.Identify(alfile, "Paste");
SequenceI[] alignment = null;
-
+
if (FormatProperties.contains(format))
alignment = FormatAdapter.read(alfile, "Paste", format);
else