If you're getting permission denied, then you're not using the correct username or something's amiss with the authentication. Most likely, it's because the sudo command only works locally, for starters, so it won't give you root on the remote box, so that's probably the problem. Make sure that the user you are logging in as on the remote server has write permissions to the location you're trying to write to.
If the problem is the destinationuser doesn't have access to that location without sudo, move the file to the destinationuser's home folder then sudo mv the file from the shell on the other server to put it in the right location.
This error occurred for me when the file already existed in the target location and the existing file had read-only permissions (preventing the file from being overwritten). In my case, I just logged in and deleted the existing file and that corrected the problem.
I was trying to copy from my local machine as username@localhost; the SSH key I was using wasn't registered to access my localhost, so I was getting permission denied. When I removed that from the source portion, it worked.
Had the same problem. I found out that the directory containing my source file did not have enough permission. So I just changed the mode recursively using:chmod -R 771 directory_path on the source machine.
If there is an identically named file owned by root on the remote host (target) the transfer will fail. This assumes you are running scp as an ordinary user on both hosts, i.e. your remote host user is not root.
ICM commands have a certain structure:
A family of commands adding things. Some commands use append syntax insteadIt is also used as an option equivalent to append in write command.
add one or several columns or header elements to an existing table
[ Add column function ]
Assigns residue structure to a peptide or a protein. Sometimes when you read a peptide or protein from MOL or MOL2 withno residue information present it is treated as a single residue small molecule. This command allows to restore residue layer. assign residue os1Example:build string "EACARVAAACEAAARQ"read mol Chemical( a_ exact hydrogen ) name="xxx" # read it as a single residue small moleculeassign residue a_ # restore residue structureSequence( a_1. )Sequence( a_2. )build
[ Build atom Build column Build conf Build sequence build tautomer Build model Build loop Build smiles Build string Build hydrogen Build molcart ]
clear terminal screen
clear selection clear the graphical selection as_graph Example:nice "1crn"as_graph = a_/1:5 # select five residuesclear selection # nothing again clear pattern chemarrayclear SMARTS search attributes in the input chemical array.Example:add column t Chemical("[C;D2]")clear pattern t.mol # D2 attribute will be clearedSee also: Exist pattern clear graphic [ os ] clears display properties , graphic representation memory and reset the graphic planes to the default.
clear error clears all error and warning bits previously set by ICM. See also Error ( i_code )
color
[ Color specification Color object ]
color accessibility g_mesh [ r_maxShade ]modify the color of each surface element of a grob to create perception of depth.The procedure calculates for each surface element (triangle) the extent it is occluded from ambient light by other parts of the molecule, and makes the elements darker proportionally to occlusion. Thus, concave regions such as pockets become dark since the surrounding bulk of the protein blocks the light from most directions, while protrusions remain bright since they are well exposed.Repeated application of thecommand or using a larger r_maxShade (the default is 0.8) generates a more dramaticshading of the shape.Example:color accessibility g_electro 0.7color accessibility g_electro 0.7 # do it two times for a more dramatic effectTo be able to come back to the initial coloring you may need to do this: clrs = Color(g_electro) # change grob color, e.g. with color accessibility color grob clrs
Uniquely coloring by object, molecule, residue or atom
color graphic_representation [ as_molecules ] [objectmoleculeresidueatom]
a special command to color the displayed and selected molecules differently. The graphic representation field can be either empty, or one of those: wire xstick cpk surface skin ribbon, residue label, atom label, site label, variable label .E.g. select graphically some atoms and do this:color xstick as_graph & a_*.//c* molecule color ribbon as_graph objectcolor cpk as_graph moleculecolor residue label as_graph residue
color background
color background color_specsets the background to the specified color color_spec in one of the supported formats .Examples:color background blue color background lightyellowcolor background rgb=255,255,255 # white. integers in 0..255 rangecolor background rgb=0.,1.,0. # green. reals in 0.. rangeTo change it permanently, go to preferences or change the value of the COLOR.bg string (e.g. COLOR.bg = "grey" ) See also: COLOR.bg , rgb, color background example .
color by alignment
color as [wirecpkskinribbonxstickballsticksurface..] alignment
colors specified graphics representations of the selected residues by the colors of an alignment as you see it in the alignment window of the Graphics User Interface. The color of a residue is controlled by the following factors:
sets a metric for calculating a distance between different conformations in a stack .
The goal of the two following compare commands is to provide a desired setting before the montecarlo command and stack operations. This command defines a filter which is used to decide how many and what conformations from the stochastic optimization trajectory are kept as low energy representatives of a certain area in conformational space. This metric is also used for the subsequent stack manipulations, e.g. compress stack.
The compare command defines the distance measure between molecular conformations which is used to form a set of different low energy conformers in the course of the stochastic global optimization procedure. The defined distance is compared with the vicinity parameter and determines whether two conformations should be considered different or similar (i.e. belonging to the same slot in the conformational stack). The compare command determines the spectrum of conformations that will be retained in the stack, accumulated during a montecarlo procedure. The default comparison set is a set of all free torsion variables (see compare vs_ ). Other methods compare atom RMSD with and without superposition, using chemical superposition, andcompare only the atoms in the interface with a molecule ( compare surface ). Please note that the compare command can change the compareMethod preference.Example: montecarlo v_//2 compareMethod ="chemical static" # suitable for docking See also montecarlo, compareMethod
Unrelated array comparison tools: