(Updates to close)
Jan 12 (Reuters) - Australian shares revered course to finish marginally lower on Thursday as healthcare stocks followed their U.S. peers lower after U.S. President-elect Donald Trump's comments on the sector, offseting gains in basic materials and energy shares.
The S&P/ASX 200 index .AXJO fell 0.1 percent, or 4.58 points, to 5,766.9 at the close of trade. The benchmark, which was up earlier in the day, gained 0.2 percent in the previous session.
Healthcare stocks were hard hit, taking their cue from U.S. peers after Trump said pharmaceutical companies were "getting away with murder" by charging high prices.
Worst hit were sector giant CSL Ltd CSL.AX , which lost 2.8 percent, and Mayne Pharma MYX.AX , down 4 percent.
Both companies have significant U.S. exposure.
Keeping the market reasonably steady, basic materials and energy shares remained resilient thanks to a weaker dollar after Trump's conference, which failed to offer details on his promises to boost fiscal spending and cut taxes. FRX/ O/R
Mining giants Rio Tinto (LON:RIO) RIO.AX , BHP Billiton (LON:BLT) BHP.AX , and Fortescue Metals FMG.AX gained between 1 percent and 1.3 percent.
Rio Tinto and Fortescue also finished higher for a third straight session, while oil and gas explorers Woodside Petroleum WPL.AX and Santos STO.AX each added around 1 percent.
New Zealand's benchmark S&P/NZX 50 index .NZ50 finished 6 points lower at 7,063.59 as losses in telcos weighed on energy sector gains.
Telephone services firm Spark New Zealand SPK.NZ , down 3.4 percent, was the benchmark's biggest loser.
Electricity generator Infratil IFT.NZ and New Zealand Refining Co NZR.NZ , up 1.8 percent and 2.6 percent respectively, were the index's top two gainers.