On Apr 8, 2021, at 4:32 AM, Poojitha Ramachandra <poojitha.r...@gmail.com> wrote:Hi,I have an array of positions of molecules of certain residue groupI want to calculate the rdf among these molecules(I dont care what kind of molecules these are)I want to use the api this way:from MDAnalysis.analysis.rdf import InterRDFrdf = InterRDF(pos,pos,range=(0,10.05),nbins=500)
earlier I was able to calculate the distance between the molecules using:l=20.1return MDAnalysis.lib.distances.distance_array(positions,positions,box=(l,l,l,90,90,90))
important criteria is that I have only positions of molecules in a system
--
You received this message because you are subscribed to the Google Groups "MDnalysis discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mdnalysis-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mdnalysis-discussion/a3feef81-2139-423e-9e13-894fa4676d11n%40googlegroups.com.

You received this message because you are subscribed to a topic in the Google Groups "MDnalysis discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mdnalysis-discussion/Dj7nzvDwfTc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mdnalysis-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mdnalysis-discussion/241B0848-A487-41EA-BB37-9589B4F27C88%40gmail.com.
Am 4/9/21 um 10:53 schrieb Poojitha Ramachandra <poojitha.r...@gmail.com>:
HI,I am using the api this way:from MDAnalysis.analysis.rdf import InterRDFN = pos.shape[0]print("size of array : ",N)u = MDAnalysis.Universe.empty(N, n_residues=N, trajectory=True) # treat each coord as own atom and residueu.load_new(np.array([pos]))res=u.atomsrdf = InterRDF(res,res,range=(0,10.05),nbins=500,exclusion_block=(1,1))#rdf.run()plt.plot(rdf.bins, rdf.rdf)But I get an odd graph. what do you think is the reason here?
<image.png>
To view this discussion on the web visit https://groups.google.com/d/msgid/mdnalysis-discussion/CAKER%2BOG5ygQg4k3Gh3gX_ciYYFDkyZ0fSx%2BD2eyqCoXa2vy-7Q%40mail.gmail.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/mdnalysis-discussion/C717D309-CE11-4F2F-9C21-61C2F79F824E%40gmail.com.
On Apr 9, 2021, at 1:31 PM, Poojitha Ramachandra <poojitha.r...@gmail.com> wrote:u.dimensions is equal to [0.0,0.0,0.0,0.0,0.0,0.0] is this causing a problem?
pos and res.positions are qual
D = MDAnalysis.lib.distances.self_distance_array(res.positions)H, edges = np.histogram(D)plt.plot(edges[:-1], H)gives this:
To view this discussion on the web visit https://groups.google.com/d/msgid/mdnalysis-discussion/CAKER%2BOG9xzZgZzTLP5zG%3DGL5or%2B_QbC25H3jOZZ3dsJ5fCSbhw%40mail.gmail.com.


To view this discussion on the web visit https://groups.google.com/d/msgid/mdnalysis-discussion/2CF48FA4-16A4-459C-AE31-A9C5D578E467%40mdanalysis.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/mdnalysis-discussion/b607d215-60f6-4400-9102-9b9b791f046fn%40googlegroups.com.