@Test public void testCreateSnp() throws Exception { assertThat(associationAttributeService.createSnp("rs345789")).isInstanceOf(SingleNucleotidePolymorphism.class); assertThat(associationAttributeService.createSnp("rs345789")).extracting("rsId").contains("rs345789"); }
public SingleNucleotidePolymorphism createSnp(String curatorEnteredSNP) { curatorEnteredSNP = StringProcessingService.tidy_curator_entered_string(curatorEnteredSNP); SingleNucleotidePolymorphism snp = new SingleNucleotidePolymorphism(); snp.setRsId(curatorEnteredSNP); return snp; }
AssociationAttributeService { public SingleNucleotidePolymorphism createSnp(String curatorEnteredSNP) { curatorEnteredSNP = StringProcessingService.tidy_curator_entered_string(curatorEnteredSNP); SingleNucleotidePolymorphism snp = new SingleNucleotidePolymorphism(); snp.setRsId(curatorEnteredSNP); return snp; } }
AssociationAttributeService { public SingleNucleotidePolymorphism createSnp(String curatorEnteredSNP) { curatorEnteredSNP = StringProcessingService.tidy_curator_entered_string(curatorEnteredSNP); SingleNucleotidePolymorphism snp = new SingleNucleotidePolymorphism(); snp.setRsId(curatorEnteredSNP); return snp; } @Autowired  AssociationAttributeService(EfoTraitRepository efoTraitRepository); }
AssociationAttributeService { public SingleNucleotidePolymorphism createSnp(String curatorEnteredSNP) { curatorEnteredSNP = StringProcessingService.tidy_curator_entered_string(curatorEnteredSNP); SingleNucleotidePolymorphism snp = new SingleNucleotidePolymorphism(); snp.setRsId(curatorEnteredSNP); return snp; } @Autowired  AssociationAttributeService(EfoTraitRepository efoTraitRepository); Collection<Gene> createLocusGenes(String authorReportedGene, String delimiter); RiskAllele createRiskAllele(String curatorEnteredRiskAllele, SingleNucleotidePolymorphism snp); SingleNucleotidePolymorphism createSnp(String curatorEnteredSNP); Collection<EfoTrait> getEfoTraitsFromRepository(Collection<String> efoUris); }
AssociationAttributeService { public SingleNucleotidePolymorphism createSnp(String curatorEnteredSNP) { curatorEnteredSNP = StringProcessingService.tidy_curator_entered_string(curatorEnteredSNP); SingleNucleotidePolymorphism snp = new SingleNucleotidePolymorphism(); snp.setRsId(curatorEnteredSNP); return snp; } @Autowired  AssociationAttributeService(EfoTraitRepository efoTraitRepository); Collection<Gene> createLocusGenes(String authorReportedGene, String delimiter); RiskAllele createRiskAllele(String curatorEnteredRiskAllele, SingleNucleotidePolymorphism snp); SingleNucleotidePolymorphism createSnp(String curatorEnteredSNP); Collection<EfoTrait> getEfoTraitsFromRepository(Collection<String> efoUris);  }