필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

online extracting data from DB using MATLAB

조회 수: 1 (최근 30일)
Neeloufar
Neeloufar 2015년 4월 15일
마감: MATLAB Answer Bot 2021년 8월 20일
Hello I want to extract DNA sequence (NT seq) from http://www.genome.jp/dbget-bin/www_bget?eco:b0002 web site with matlab. I do not know what to do. I have to do this only by matlab, so I have no other chance to work with other languages. I was wondering if anyone helps me to solve this problem. by the way I have use some function getTableFromWeb_mod which is written in matlab, but when I used this function I faced with 3 warnings and nothing return. It would be grateful if someone help me, and also when I run the code bellow I confront with that warnings again, the same.
FirstfullURL = ('http://www.genome.jp/dbget-bin/www_bget?eco:b0002/search/apachesolr_search/<NP seq> '); Firststring = urlread(FirstfullURL);
Thanks

답변 (1개)

Jonathan Campelli
Jonathan Campelli 2015년 4월 15일
Hello Neeloufar,
Here is some very specific code that pulls all the data from url: GenomeNet NT seq:
pullData=urlread('http://www.genome.jp/dbget-bin/www_bget?-f+-n+n+eco:b0002')
% pullData(pullData == ' ') = []
Cut=strsplit(pullData, {'(N)','</pre>'})
char(Cut(2))
The DNA sequence is targeted by cutting the downloaded string into three segments, the middle of which is found at "Cut(2)" and returns a readable string using "char(Cut(2))". Let me know if this code does not meet your needs.
Best regards,
Jonathan Campelli
  댓글 수: 2
Neeloufar
Neeloufar 2015년 4월 16일
Thanks a lot, It works....Thanks you
Guillaume
Guillaume 2015년 4월 16일
Neeloufar, then accept the answer as this will give Jonathan some reputation points.

이 질문은 마감되었습니다.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by