* @param hashtable
* @return
*/
- public static int[] extractCdnaProfile(Hashtable hashtable,
+ public static int[] extractCdnaProfile(
+ Hashtable<String, Object> hashtable,
boolean ignoreGaps)
{
// this holds #seqs, #ungapped, and then codon count, indexed by encoded
* the consensus data stores to be populated (one per column)
*/
public static void calculateCdna(AlignmentI alignment,
- Hashtable[] hconsensus)
+ Hashtable<String, Object>[] hconsensus)
{
final char gapCharacter = alignment.getGapCharacter();
List<AlignedCodonFrame> mappings = alignment.getCodonFrames();
for (int col = 0; col < cols; col++)
{
// todo would prefer a Java bean for consensus data
- Hashtable<String, int[]> columnHash = new Hashtable<>();
+ Hashtable<String, Object> columnHash = new Hashtable<>();
// #seqs, #ungapped seqs, counts indexed by (codon encoded + 1)
int[] codonCounts = new int[66];
codonCounts[0] = alignment.getSequences().size();
*/
public static void completeCdnaConsensus(
AlignmentAnnotation consensusAnnotation,
- Hashtable[] consensusData, boolean showProfileLogo, int nseqs)
+ Hashtable<String, Object>[] consensusData, boolean showProfileLogo,
+ int nseqs)
{
if (consensusAnnotation == null
|| consensusAnnotation.annotations == null
consensusAnnotation.scaleColLabel = true;
for (int col = 0; col < consensusData.length; col++)
{
- Hashtable hci = consensusData[col];
+ Hashtable<String, Object> hci = consensusData[col];
if (hci == null)
{
// gapped protein column?