Skip to content

Commit

Permalink
improve fasta details
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonardoGonzales committed Dec 9, 2024
1 parent 47003db commit 6e1c554
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import org.uniprot.core.uniparc.UniParcEntry;
import org.uniprot.core.uniparc.UniParcEntryLight;

import static org.uniprot.core.parser.fasta.FastaUtils.*;
import static org.uniprot.core.uniparc.impl.UniParcEntryLightBuilder.HAS_ACTIVE_CROSS_REF;

/**
Expand Down Expand Up @@ -40,14 +41,7 @@ private static String getFastaString(String entry, String status, Sequence seque
sb.append(">").append(entry).append(" ");
sb.append("status=").append(status);
sb.append("\n");
int columnCounter = 0;
for (char c : sequence.getValue().toCharArray()) {
if (columnCounter % 60 == 0 && columnCounter > 0) {
sb.append("\n");
}
sb.append(c);
columnCounter++;
}
sb.append(parseSequence(sequence.getValue()));
return sb.toString();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,6 @@
*/
public class UniParcDBCrossReferenceConverter
implements Converter<DbReferenceType, UniParcCrossReference> {

public static final String PROPERTY_GENE_NAME = "gene_name";
public static final String PROPERTY_PROTEIN_NAME = "protein_name";
public static final String PROPERTY_CHAIN = "chain";
public static final String PROPERTY_NCBI_GI = "NCBI_GI";
public static final String PROPERTY_PROTEOME_ID = "proteome_id";
public static final String PROPERTY_COMPONENT = "component";
public static final String PROPERTY_NCBI_TAXONOMY_ID = "NCBI_taxonomy_id";
public static final String PROPERTY_UNIPROTKB_ACCESSION = "UniProtKB_accession";

private final ObjectFactory xmlFactory;
private final TaxonomyRepo taxonomyRepo;

Expand Down

0 comments on commit 6e1c554

Please sign in to comment.