Quantum transport through atomic wires