Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pierre LINDENBAUM
tdncbi
Commits
04b6fc99
Commit
04b6fc99
authored
Oct 26, 2015
by
lindenb
Browse files
cont
parent
5f5efbad
Changes
2
Hide whitespace changes
Inline
Side-by-side
ParseDbSnp.java
View file @
04b6fc99
import
gov.nih.nlm.ncbi
.snp.docsum.*
;
import
https.www_ncbi_nlm_nih_gov
.snp.docsum.*
;
import
javax.xml.bind.*
;
import
javax.xml.stream.*
;
import
javax.xml.stream.events.*
;
...
...
@@ -6,7 +6,7 @@ class ParseDbSnp
{
public
static
void
main
(
String
[]
args
)
throws
Exception
{
JAXBContext
jaxbCtxt
=
JAXBContext
.
newInstance
(
"
gov.nih.nlm.ncbi
.snp.docsum"
);
JAXBContext
jaxbCtxt
=
JAXBContext
.
newInstance
(
"
https.www_ncbi_nlm_nih_gov
.snp.docsum"
);
Unmarshaller
unmarshaller
=
jaxbCtxt
.
createUnmarshaller
();
XMLInputFactory
ifactory
=
XMLInputFactory
.
newInstance
();
XMLEventReader
r
=
ifactory
.
createXMLEventReader
(
System
.
in
);
...
...
tdncbi.tex
View file @
04b6fc99
...
...
@@ -1616,7 +1616,8 @@ ementFormDefault="qualified" attributeFormDefault="unqualified">
\subsubsection
{
Compiling the XML Schema for dbSNP with XJC
}
\begin{lstlisting}
[language=bash,basicstyle=
\tiny
,breaklines=false]
$
xjc
-
d . "ftp:
//
ftp.ncbi.nlm.nih.gov
/
snp
/
specs
/
docsum
_
3
.
3
.xsd"
$
wget
-
O docsum
_
3
.
4
.xsd "ftp:
//
ftp.ncbi.nlm.nih.gov
/
snp
/
specs
/
docsum
_
3
.
4
.xsd"
$
xjc -d . docsum
_
3.4.xsd
parsing a schema...
compiling a schema...
gov/nih/nlm/ncbi/snp/docsum/Assay.java
...
...
@@ -1646,7 +1647,7 @@ gov/nih/nlm/ncbi/snp/docsum/package-info.java
Search the non-genomic rs
\#
in dbSNP.
\begin{lstlisting}
[language=java,basicstyle=
\tiny
]
import
gov.nih.nlm.ncbi
.snp.docsum.
*
;
import
https.www
_
ncbi
_
nlm
_
nih
_
gov
.snp.docsum.*;
import javax.xml.bind.*;
import javax.xml.stream.*;
import javax.xml.stream.events.*;
...
...
@@ -1654,7 +1655,7 @@ class ParseDbSnp
{
public static void main(String[] args) throws Exception
{
JAXBContext jaxbCtxt
=
JAXBContext.newInstance
(
"
gov.nih.nlm.ncbi
.snp.docsum"
)
;
JAXBContext jaxbCtxt=JAXBContext.newInstance("
https.www
_
ncbi
_
nlm
_
nih
_
gov
.snp.docsum");
Unmarshaller unmarshaller=jaxbCtxt.createUnmarshaller();
XMLInputFactory ifactory = XMLInputFactory.newInstance();
XMLEventReader r= ifactory.createXMLEventReader(System.in);
...
...
@@ -1682,7 +1683,7 @@ class ParseDbSnp
\subsubsection
{
Compiling the XML Schema for dbSNP with XJC
}
compile...
\begin{lstlisting}
[language=bash,basicstyle=
\tiny
,breaklines=false]
$
javac ParseDbSnp.java
gov/nih/nlm/ncbi
/snp/docsum/*.java
$
javac ParseDbSnp.java
https
/
www
_
ncbi
_
nlm
_
nih
_
gov
/
snp
/
docsum
/*
.java
\end
{
lstlisting
}
and run...
\begin
{
lstlisting
}
[
language
=
bash,basicstyle
=
\tiny
,breaklines
=
false
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment