Re: Avoid PDB folder structure creation

Jose Duarte <[email protected]> Thu, 7 Dec 2023 08:57:47 -0800
Newsgroups gmane.comp.java.bio.general
Message-ID <CAHhO=JEdLbBCwScfLt8f=qN9adCvGyCfqkQe-xQBY5AXunVFGg@mail.gmail.com>
--===============5363573711510808571==
Content-Type: multipart/alternative; boundary="000000000000a9550b060bee5e18"

--000000000000a9550b060bee5e18
Content-Type: text/plain; charset="UTF-8"

That folder structure is only created when using AtomCache or the wrapper
StructureIO.getStructure(pdbId). If you directly use a URL with the cif
reader then there's no files or folders created locally, e.g.:

Structure structure = CifStructureConverter.fromURL("
https://files.rcsb.org/download/4HHB.cif.gz");

Jose


On Wed, 6 Dec 2023 at 06:28, Enrico Morelli <[email protected]> wrote:

> Dear,
>
> is it possible to avoid the folder structure creation
> (structures/divided/mmCIF/...) when download a PDB/CIF file?
>
> I would to download the file in a specific folder.
>
> Thanks
>
> --
> -----------------------------------------------------------
>   Enrico Morelli
>   System Administrator | Programmer | Web Developer
>
>   CERM - Polo Scientifico
>   via Sacconi, 6 - 50019 Sesto Fiorentino (FI) - ITALY
> ------------------------------------------------------------
> _______________________________________________
> Biojava-l mailing list  -  [email protected]
> https://mailman.open-bio.org/mailman/listinfo/biojava-l
>

--000000000000a9550b060bee5e18
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">That folder structure is only created when using AtomCache=
 or the wrapper StructureIO.getStructure(pdbId). If you directly use a URL =
with the cif reader then there&#39;s no files or folders created locally, e=
.g.:<div><br></div><div>Structure structure =3D CifStructureConverter.fromU=
RL(&quot;<a href=3D"https://files.rcsb.org/download/4HHB.cif.gz">https://fi=
les.rcsb.org/download/4HHB.cif.gz</a>&quot;);<br><div><br></div><div>Jose</=
div></div><div><br></div></div><br><div class=3D"gmail_quote"><div dir=3D"l=
tr" class=3D"gmail_attr">On Wed, 6 Dec 2023 at 06:28, Enrico Morelli &lt;<a=
 href=3D"mailto:[email protected]">[email protected]</a>&gt; wrote:=
<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8=
ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Dear,<br>
<br>
is it possible to avoid the folder structure creation (structures/divided/m=
mCIF/...) when download a PDB/CIF file?<br>
<br>
I would to download the file in a specific folder.<br>
<br>
Thanks<br>
<br>
-- <br>
-----------------------------------------------------------<br>
=C2=A0 Enrico Morelli<br>
=C2=A0 System Administrator | Programmer | Web Developer<br>
<br>
=C2=A0 CERM - Polo Scientifico<br>
=C2=A0 via Sacconi, 6 - 50019 Sesto Fiorentino (FI) - ITALY<br>
------------------------------------------------------------<br>
_______________________________________________<br>
Biojava-l mailing list=C2=A0 -=C2=A0 <a href=3D"mailto:[email protected]=
g" target=3D"_blank">[email protected]</a><br>
<a href=3D"https://mailman.open-bio.org/mailman/listinfo/biojava-l" rel=3D"=
noreferrer" target=3D"_blank">https://mailman.open-bio.org/mailman/listinfo=
/biojava-l</a><br>
</blockquote></div>

--000000000000a9550b060bee5e18--

--===============5363573711510808571==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Biojava-l mailing list  -  [email protected]
https://mailman.open-bio.org/mailman/listinfo/biojava-l

--===============5363573711510808571==--