Skip to content

Commit

Permalink
update: gene
Browse files Browse the repository at this point in the history
  • Loading branch information
zprobot committed Mar 11, 2024
1 parent d177507 commit 40657e5
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 3 deletions.
Binary file not shown.
Binary file removed public/data/proteinTable.json.gz
Binary file not shown.
Binary file added public/data/tissueJson.json.gz
Binary file not shown.
4 changes: 2 additions & 2 deletions src/api/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ export const queryKey = (proteinName) => {
export const getProteins = () => {
return request({
method: 'get',
url: '/data/proteinTable.json.gz',
url: '/data/tissueJson.json.gz',
responseType: 'arraybuffer'
})
}

export const getCellLineProteins = () => {
return request({
method: 'get',
url: '/data/Cell_lines_IBAQ.json.gz',
url: '/data/cellJson.json.gz',
responseType: 'arraybuffer'
})
}
2 changes: 1 addition & 1 deletion src/components/AeShow/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ const queryProtein = (input) => {
let proteins = proteinTable
input.value.map((protein) => {
const output = proteins.find((item) => {
return item.name === protein.trim()
return item.name === protein.trim() || item.gene_name === protein.trim()
})
if (!output) {
alert('Please enter a legal protein name')
Expand Down

0 comments on commit 40657e5

Please sign in to comment.