Changeset 5805
- Timestamp:
- Jan 9, 2020, 9:49:48 AM (2 years ago)
- Location:
- extensions/net.sf.basedb.reggie/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/net.sf.basedb.reggie/trunk/resources/analysis/view_variants.js
r5735 r5805 28 28 var info = snp.info; 29 29 var cosmicId = info['cosmic_ID']; 30 var dbSnpId = info['dbsnp_ID']; 30 31 html += '<tr class="snp highlight">'; 31 32 html += '<td>'+Strings.encodeTags(snp.chromosome+':'+snp.position)+'</td>'; 32 33 html += '<td class="dottedleft ref">'+Strings.encodeTags(snp.ref+' › '+snp.alt)+'</td>'; 33 html += '<td class="dottedleft">'+vgt.getAnnValues(info, 'Gene_Name')+'</td>'; 34 html += '<td class="dottedleft">'+Strings.encodeTags(info['TYPE'])+'</td>'; 35 html += '<td class="dottedleft">'+Strings.encodeTags(info['ncbiRefSeq'])+'</td>'; 34 36 html += '<td class="dottedleft">'+vgt.getCosmicLink(cosmicId)+'</td>'; 37 html += '<td class="dottedleft">'+vgt.getDbSnpLink(dbSnpId)+'</td>'; 35 38 html += '</tr>'; 36 39 } … … 70 73 } 71 74 75 vgt.getDbSnpLink = function(rsId) 76 { 77 if (!rsId) return ''; 78 79 var tmp = rsId.split(','); 80 var links = []; 81 for (var i = 0; i < tmp.length; i++) 82 { 83 var link = '<a target="_blank" title="View in dbSNP (new window)"'; 84 link += ' href="https://www.ncbi.nlm.nih.gov/snp/'+encodeURIComponent(tmp[i])+'">'; 85 link += Strings.encodeTags(tmp[i])+'</a>'; 86 87 links[i] = link; 88 } 89 return links.join(', '); 90 } 91 72 92 return vgt; 73 93 }(); -
extensions/net.sf.basedb.reggie/trunk/resources/analysis/view_variants.jsp
r5730 r5805 94 94 <th>Location</th> 95 95 <th class="dottedleft ref">Ref › Alt</th> 96 <th class="dottedleft">Type</th> 96 97 <th class="dottedleft">Gene</th> 97 98 <th class="dottedleft">Cosmic ID</th> 99 <th class="dottedleft">dbSNP ID</th> 98 100 </tr> 99 101 <tbody id="snp-list"></tbody> -
extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/servlet/VariantCallingServlet.java
r5776 r5805 217 217 parser.setUseLineNoAsId(true); 218 218 parser.setInfoFactory(new VariantCallingInfoFactory( 219 Arrays.asList(" cosmic_ID"),220 Arrays.asList("Gene_Name")219 Arrays.asList("TYPE", "ncbiRefSeq", "cosmic_ID", "dbsnp_ID"), 220 null 221 221 )); 222 222 vcfIn = vcf.getDownloadStream(0);
Note: See TracChangeset
for help on using the changeset viewer.